Function at 0x480232
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
mov dword [ebp - 0x10], ecx
mov ecx, eax
movzx eax, word [eax]
push edi
xor edi, edi
inc edi
cmp ax, si
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x4c], 0x100000
mov dword [ebp - 0x48], esi
je 0x4802d9
mov edx, eax
mov eax, edx
call fcn.0043daaf
test al, al
jne 0x4802d9
cmp dx, 0x24
jne 0x480293
mov dword [ebp - 0xc], edi
jmp 0x4802cc
cmp dx, 0x2a
jne 0x4802a4
movsx eax, byte [ecx]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], esi
jmp 0x4802cc
cmp dx, 0x2b
jne 0x4802b5
movsx eax, byte [ecx]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x24], esi
jmp 0x4802cc
cmp dx, 0x26
jne 0x4802c0
mov dword [ebp - 0x2c], edi
jmp 0x4802cc
cmp dx, 0x23
jne 0x4802cc
movsx eax, byte [ecx]
mov dword [ebp - 0x58], eax
inc ecx
inc ecx
mov dx, word [ecx]
cmp dx, si
mov dword [ebp - 4], ecx
jne 0x48027d
lea eax, [ebp - 4]
push eax
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x60], 0x4bdafc
mov dword [ebp - 0x54], esi
call fcn.0043dae7
mov eax, dword [ebp - 4]
mov dword [ebp + 8], eax
mov ax, word [eax]
cmp ax, 0x2d
pop ecx
mov dword [ebp - 0x50], 0x80000000
mov cl, 0x2a
jne 0x48030d
mov cl, al
movsx ecx, cl
movzx eax, ax
cmp ecx, eax
mov dword [ebp - 8], ecx
jne 0x4804f3
push 5
pop ebx
push ebx
lea eax, [ebp - 4]
push eax
push 0x4bff8c
call fcn.00445fa6
add esp, 0xc
test al, al
je 0x480343
mov dword [ebp - 0x20], 1
jmp 0x4804e4
push 6
lea eax, [ebp - 4]
push eax
push 0x4c7e00
call fcn.00445fa6
add esp, 0xc
test al, al
je 0x480366
mov dword [ebp - 0x20], 2
jmp 0x4804e4
push ebx
lea eax, [ebp - 4]
push eax
push 0x4c7df8
call fcn.00445fa6
add esp, 0xc
test al, al
je 0x480385
or byte [ebp - 0x13], 1
jmp 0x4804e4
push 6
lea eax, [ebp - 4]
push eax
push 0x4c1a78
call fcn.00445fa6
add esp, 0xc
test al, al
je 0x4803a5
or byte [ebp - 0x17], 2
jmp 0x4804e4
push 6
lea eax, [ebp - 4]
push eax
push 0x4c7df0
call fcn.00445fa6
add esp, 0xc
test al, al
je 0x4803c8
mov dword [ebp - 0x28], 0x400
jmp 0x4804e4
push ebx
lea eax, [ebp - 4]
push eax
push 0x4c7de8
call fcn.00445fa6
add esp, 0xc
test al, al
je 0x4803ea
mov dword [ebp - 0x50], 0xfffffff1
jmp 0x4804e4
push 4
lea eax, [ebp - 4]
push eax
push 0x4c7de0
call fcn.00445fa6
add esp, 0xc
test al, al
je 0x48040d
mov dword [ebp - 0xc], 1
jmp 0x4804e4
push ebx
lea eax, [ebp - 4]
push eax
push 0x4c7dd8
call fcn.00445fa6
add esp, 0xc
test al, al
je 0x480432
mov dword [ebp - 0x24], 0x2a
mov dword [ebp - 0x1c], esi
jmp 0x4804e4
mov edi, dword [ebp - 4]
push 4
add edi, 2
push edi
push 0x4c7dd0
call fcn.0043eeea
add esp, 0xc
test al, al
je 0x480479
mov edi, dword [ebp - 4]
add dword [ebp - 4], 0xa
mov ebx, dword [ebp - 4]
lea eax, [ebp - 4]
push eax
call fcn.00405615
mov eax, dword [ebp - 4]
pop ecx
sub eax, ebx
sar eax, 1
push eax
push ebx
lea ecx, [ebp - 0x44]
call fcn.0044407f
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x60], eax
jmp 0x4804b7
push ebx
push edi
push 0x4c7dc8
call fcn.0043eeea
add esp, 0xc
test al, al
lea eax, [ebp - 4]
push eax
je 0x4804de
mov edi, dword [ebp - 4]
add dword [ebp - 4], 0xc
mov ebx, dword [ebp - 4]
call fcn.00405615
mov eax, dword [ebp - 4]
pop ecx
sub eax, ebx
sar eax, 1
push eax
push ebx
lea ecx, [ebp - 0x40]
call fcn.0044407f
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x54], eax
cmp edi, dword [ebp - 4]
jae 0x4804d3
mov ecx, dword [ebp - 4]
sub ecx, edi
dec ecx
shr ecx, 1
inc ecx
shr ecx, 1
mov eax, 0x200020
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
lea eax, [ebp - 4]
push eax
call fcn.0043dae7
jmp 0x4804e3
call fcn.00408ddd
pop ecx
mov eax, dword [ebp - 4]
movzx eax, word [eax]
cmp dword [ebp - 8], eax
je 0x48031e
cmp dword [ebp - 0x1c], esi
jne 0x4804fd
cmp dword [ebp - 0x20], esi
je 0x480500
mov dword [ebp - 0x28], esi
movsx eax, word [ebp - 0x18]
or eax, dword [ebp - 0x28]
or eax, dword [ebp - 0x14]
or eax, dword [ebp - 0x2c]
mov dword [ebp - 0x68], eax
lea eax, [ebp - 4]
push eax
call fcn.0043dae7
mov eax, dword [ebp - 4]
cmp word [eax], si
pop ecx
jne 0x48052c
mov esi, 0x80070057
jmp 0x48093e
cmp dword [ebp - 0xc], esi
mov dword [ebp - 0x3c], esi
je 0x48054c
mov ecx, dword [ebp - 0x10]
push 1
push esi
lea eax, [ebp - 0x3c]
push eax
push dword [ebp + 8]
call fcn.004537c3
mov eax, dword [ebp - 0x3c]
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
call fcn.0043dae7
mov edi, dword [ebp + 8]
mov ax, word [edi]
cmp ax, si
pop ecx
jne 0x48056b
mov esi, 0x80070057
jmp 0x480936
movzx ebx, ax
cmp dword [ebp - 8], ebx
jne 0x4805da
movzx eax, word [edi + 2]
cmp dword [ebp - 8], eax
jne 0x4805c0
push 3
lea eax, [edi + 4]
push eax
push 0x4c7dc4
call fcn.0043eeea
add esp, 0xc
test al, al
je 0x4805c0
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 4]
add edi, 0xa
push eax
mov dword [ebp - 4], edi
call fcn.00448ed1
mov eax, dword [ebp - 0x4c]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x48]
add eax, 0x1fff
adc ecx, esi
and eax, 0xffffe000
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], ecx
cmp dword [ebp - 8], ebx
jne 0x4805da
lea eax, [ebp + 8]
push eax
call fcn.00408ddd
mov eax, dword [ebp + 8]
movzx eax, word [eax]
cmp dword [ebp - 8], eax
pop ecx
je 0x4805c5
cmp dword [ebp - 0x24], esi
mov edi, dword [ebp - 0x10]
je 0x4805e7
mov ebx, dword [edi + 0x28]
jmp 0x4805e9
xor ebx, ebx
cmp dword [ebp - 0x14], esi
je 0x4805f3
cmp dword [ebp - 0x20], esi
jne 0x480603
cmp ebx, esi
je 0x480603
push ebx
call fcn.0043e357
pop ecx
mov dword [ebp - 4], eax
jmp 0x480606
mov dword [ebp - 4], esi
lea eax, [ebp - 0x34]
push 4
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x6c], eax
call fcn.004aa268
cmp eax, esi
pop ecx
je 0x480629
push 1
push dword [edi + 0x44]
mov ecx, eax
call fcn.0043dca4
jmp 0x48062b
xor eax, eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x5c], eax
mov eax, dword [edi + 0x48]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x30]
push 0x9c
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x64], eax
call fcn.004aa268
cmp eax, esi
pop ecx
je 0x48065a
push ebx
push edi
mov ecx, eax
call fcn.00414756
jmp 0x48065c
xor eax, eax
cmp dword [ebp - 0x14], esi
mov dword [ebp - 0x30], eax
jne 0x48066b
mov byte [eax + 0x91], 1
cmp dword [ebp - 0x14], 0
mov edi, dword [ebp - 0x30]
mov esi, 0x4d80e8
jne 0x480680
test ebx, ebx
jne 0x480680
mov dword [edi + 0x24], esi
mov eax, dword [ebp - 0xc]
push 0
mov dword [edi + 0x48], eax
push dword [ebp - 0x3c]
mov ecx, edi
call fcn.0044fb36
cmp dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x5c]
mov dword [edi + 0x44], eax
mov dword [ebp - 8], esi
je 0x4806a6
mov eax, dword [ebp - 0x10]
jmp 0x4806b3
test ebx, ebx
je 0x4806b6
mov eax, dword [ebx + 0x194]
mov dword [edi + 0x24], eax
mov dword [ebp - 8], eax
push 0x4d8d24
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
xor eax, eax
cmp dword [ebp - 0x14], eax
jne 0x480700
cmp dword [ebp - 0x24], eax
je 0x480700
cmp dword [ebp - 0x20], eax
je 0x480700
mov esi, dword [ebp - 0x10]
mov eax, esi
mov edx, 0x7fffd
test eax, eax
je 0x480703
mov cl, byte [eax + 0x91]
test cl, 1
je 0x4806f0
test cl, 0x42
jne 0x4806f8
dec edx
mov eax, dword [eax + 0x24]
jns 0x4806dc
jmp 0x480703
mov dword [edi + 0x24], eax
mov dword [ebp - 8], eax
jmp 0x480703
mov esi, dword [ebp - 0x10]
push dword [ebp - 8]
mov ecx, edi
push esi
call fcn.004402c7
cmp dword [ebp - 0x2c], 0
je 0x480720
push 0
push edi
xor eax, eax
call fcn.00454bfb
pop ecx
pop ecx
cmp dword [ebp - 0x1c], 0
jne 0x48073a
add dword [0x4d849c], 1
cmp dword [ebp - 0x28], 0
je 0x48073a
add dword [0x4d84a0], 1
cmp byte [0x4d7e74], 0
jne 0x48074a
mov byte [0x4d7e74], 1
push 0x4d8d24
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
cmp dword [ebp - 0x2c], 0
mov al, byte [esi + 0x92]
mov byte [edi + 0x92], al
mov al, byte [esi + 9]
mov byte [edi + 9], al
je 0x480771
mov byte [edi + 9], 1
push dword [ebp + 8]
lea ecx, [ebp - 0x18]
call fcn.0044cd74
push 0x44
lea ecx, [ebp - 0xc]
call fcn.00443e04
mov esi, dword [ebp - 0xc]
push esi
call fcn.0043da5b
mov eax, dword [ebp - 0x10]
mov dword [esi], eax
mov eax, dword [ebp - 0x18]
mov dword [esi + 4], eax
mov eax, dword [ebp + 0xc]
pop ecx
xor ecx, ecx
mov dword [esi + 8], ecx
mov dword [esi + 0xc], 4
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], eax
mov eax, dword [ebp - 4]
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 0x24]
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], eax
mov eax, dword [ebp - 0x1c]
mov dword [esi + 0x24], eax
mov eax, dword [ebp - 0x68]
or eax, dword [ebp - 0x2c]
mov byte [ebp + 0xb], cl
mov dword [esi + 0x28], eax
mov eax, dword [ebp - 0x58]
mov dword [esi + 0x2c], eax
mov eax, dword [ebp - 0x5c]
mov dword [esi + 0x30], eax
lea eax, [ebp - 0x38]
push eax
push 0x10000
push esi
push 0x47ffa5
push dword [ebp - 0x4c]
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
push ecx
mov dword [ebp - 0x38], ecx
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov edi, eax
xor ebx, ebx
test edi, edi
jne 0x480835
cmp dword [ebp - 0x1c], ebx
jne 0x480835
mov esi, 0x4d8d24
push esi
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
sub dword [0x4d849c], 1
cmp dword [ebp - 0x28], ebx
je 0x48082e
sub dword [0x4d84a0], 1
push esi
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov eax, dword [0x4d7e88]
cmp eax, ebx
je 0x480845
push eax
call dword [sym.imp.KERNEL32.DLL_SetEvent]
cmp edi, ebx
je 0x48084e
mov dword [ebp + 0xc], ebx
jmp 0x48085e
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, ebx
jne 0x48085b
xor eax, eax
inc eax
mov dword [ebp + 0xc], eax
cmp edi, ebx
je 0x480881
cmp dword [ebp - 0x50], 0x80000000
je 0x480875
push dword [ebp - 0x50]
push edi
call dword [sym.imp.KERNEL32.DLL_SetThreadPriority]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
push dword [ebp - 0x60]
mov esi, dword [ebp - 0x10]
push dword [ebp - 0x38]
push esi
call fcn.00446583
mov eax, dword [ebp - 0x54]
add esp, 0xc
cmp eax, ebx
je 0x4808b2
cmp word [eax], bx
je 0x4808b2
push eax
push edi
push esi
call fcn.0042bca9
add esp, 0xc
test eax, eax
je 0x4808b2
mov byte [ebp + 0xb], 1
cmp dword [ebp - 0x20], ebx
je 0x4808e6
cmp edi, ebx
je 0x4808e6
cmp dword [ebp - 0x38], ebx
je 0x4808e6
push dword [ebp - 0x38]
lea eax, [ebp - 0xa8]
push 0x4c7dac
push eax
call dword [sym.imp.USER32.DLL_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0xa8]
push eax
mov ecx, esi
call fcn.0042ae61
cmp dword [ebp - 4], ebx
je 0x480902
cmp edi, ebx
jne 0x480906
push dword [esi + 0x28]
push 1
push 0x451
push dword [ebp - 4]
call dword [sym.imp.USER32.DLL_SendMessageW]
cmp edi, ebx
je 0x480913
cmp byte [ebp + 0xb], 0
jne 0x480913
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea ecx, [ebp - 0xc]
call fcn.0043db4f
lea ecx, [ebp - 0x18]
call fcn.0043db4f
lea ecx, [ebp - 0x64]
call fcn.0044cc5e
lea ecx, [ebp - 0x6c]
call fcn.00479908
mov esi, dword [ebp + 0xc]
lea ecx, [ebp - 0x3c]
call fcn.0043db4f
lea ecx, [ebp - 0x40]
call fcn.0043db4f
lea ecx, [ebp - 0x44]
call fcn.0043db4f
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8