Function at 0x47835a
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 - 0xc], 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 - 8], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x18], esi
je 0x4783f7
mov edx, eax
mov eax, edx
call fcn.00437e2d
test al, al
jne 0x4783f7
cmp dx, 0x24
jne 0x4783b1
mov dword [ebp - 8], edi
jmp 0x4783ea
cmp dx, 0x2a
jne 0x4783c2
movsx eax, byte [ecx]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x1c], esi
jmp 0x4783ea
cmp dx, 0x2b
jne 0x4783d3
movsx eax, byte [ecx]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], esi
jmp 0x4783ea
cmp dx, 0x26
jne 0x4783de
mov dword [ebp - 0x28], edi
jmp 0x4783ea
cmp dx, 0x23
jne 0x4783ea
movsx eax, byte [ecx]
mov dword [ebp - 0x60], eax
inc ecx
inc ecx
mov dx, word [ecx]
cmp dx, si
mov dword [ebp - 4], ecx
jne 0x47839b
lea eax, [ebp - 4]
push eax
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x54], 0x4a7888
mov dword [ebp - 0x5c], esi
call fcn.00437e65
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 0x47842b
mov cl, al
movsx ecx, cl
movzx eax, ax
cmp ecx, eax
mov dword [ebp - 0x10], ecx
jne 0x478607
push 5
pop edi
push edi
lea eax, [ebp - 4]
push eax
push 0x4a99ec
call fcn.0043fc72
add esp, 0xc
test al, al
je 0x478461
mov dword [ebp - 0x24], 1
jmp 0x4785f8
push 6
pop ebx
push ebx
lea eax, [ebp - 4]
push eax
push 0x4b1560
call fcn.0043fc72
add esp, 0xc
test al, al
je 0x478486
mov dword [ebp - 0x24], 2
jmp 0x4785f8
push edi
lea eax, [ebp - 4]
push eax
push 0x4b1558
call fcn.0043fc72
add esp, 0xc
test al, al
je 0x4784a5
or byte [ebp - 0x13], 1
jmp 0x4785f8
push ebx
lea eax, [ebp - 4]
push eax
push 0x4b1550
call fcn.0043fc72
add esp, 0xc
test al, al
je 0x4784c4
or byte [ebp - 0x17], 2
jmp 0x4785f8
push ebx
lea eax, [ebp - 4]
push eax
push 0x4b1548
call fcn.0043fc72
add esp, 0xc
test al, al
je 0x4784e6
mov dword [ebp - 0x30], 0x400
jmp 0x4785f8
push edi
lea eax, [ebp - 4]
push eax
push 0x4b1540
call fcn.0043fc72
add esp, 0xc
test al, al
je 0x478508
mov dword [ebp - 0x50], 0xfffffff1
jmp 0x4785f8
push 4
lea eax, [ebp - 4]
push eax
push 0x4b1538
call fcn.0043fc72
add esp, 0xc
test al, al
je 0x47852b
mov dword [ebp - 8], 1
jmp 0x4785f8
push edi
lea eax, [ebp - 4]
push eax
push 0x4b1530
call fcn.0043fc72
add esp, 0xc
test al, al
je 0x478550
mov dword [ebp - 0x2c], 0x2a
mov dword [ebp - 0x1c], esi
jmp 0x4785f8
push edi
mov edi, dword [ebp - 4]
push edi
push 0x4b1528
call fcn.0043917b
add esp, 0xc
test al, al
je 0x478590
add dword [ebp - 4], 0xa
mov ebx, dword [ebp - 4]
lea eax, [ebp - 4]
push eax
call fcn.00405172
mov eax, dword [ebp - 4]
pop ecx
sub eax, ebx
sar eax, 1
push eax
push ebx
lea ecx, [ebp - 0x44]
call fcn.0043dea2
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x54], eax
jmp 0x4785cb
push ebx
push edi
push 0x4b1520
call fcn.0043917b
add esp, 0xc
test al, al
lea eax, [ebp - 4]
push eax
je 0x4785f2
add dword [ebp - 4], 0xc
mov ebx, dword [ebp - 4]
call fcn.00405172
mov eax, dword [ebp - 4]
pop ecx
sub eax, ebx
sar eax, 1
push eax
push ebx
lea ecx, [ebp - 0x40]
call fcn.0043dea2
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x5c], eax
cmp edi, dword [ebp - 4]
jae 0x4785e7
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.00437e65
jmp 0x4785f7
call fcn.00405196
pop ecx
mov eax, dword [ebp - 4]
movzx eax, word [eax]
cmp dword [ebp - 0x10], eax
je 0x47843c
cmp dword [ebp - 0x1c], esi
jne 0x478611
cmp dword [ebp - 0x24], esi
je 0x478614
mov dword [ebp - 0x30], esi
movsx ebx, word [ebp - 0x18]
or ebx, dword [ebp - 0x30]
lea eax, [ebp - 4]
or ebx, dword [ebp - 0x14]
push eax
or ebx, dword [ebp - 0x28]
call fcn.00437e65
mov eax, dword [ebp - 4]
cmp word [eax], si
pop ecx
jne 0x47863d
mov esi, 0x80070057
jmp 0x478a5d
cmp dword [ebp - 8], esi
mov dword [ebp - 0x3c], esi
je 0x47866b
mov ecx, dword [ebp - 0xc]
push 1
push esi
lea eax, [ebp - 0x3c]
push eax
push dword [ebp + 8]
call fcn.0044bafc
mov eax, dword [ebp - 0x3c]
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
call fcn.00437e65
mov edi, dword [ebp + 8]
jmp 0x47867d
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
call fcn.00437e65
mov edi, dword [ebp - 4]
mov ax, word [edi]
cmp ax, si
pop ecx
jne 0x478690
mov esi, 0x80070057
jmp 0x478a55
movzx eax, ax
cmp dword [ebp - 0x10], eax
mov dword [ebp - 0x4c], 0x100000
mov dword [ebp - 0x48], esi
jne 0x4786fb
movzx eax, word [edi + 2]
cmp dword [ebp - 0x10], eax
jne 0x4786fb
push 3
lea eax, [edi + 4]
push eax
push 0x4b151c
call fcn.0043917b
add esp, 0xc
test al, al
je 0x4786fb
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 4]
add edi, 0xa
push eax
mov dword [ebp - 4], edi
call fcn.004428d3
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
jmp 0x4786fb
lea eax, [ebp + 8]
push eax
call fcn.00405196
pop ecx
mov eax, dword [ebp + 8]
movzx eax, word [eax]
cmp dword [ebp - 0x10], eax
je 0x4786f1
cmp dword [ebp - 0x2c], esi
je 0x478713
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x28]
jmp 0x478715
xor eax, eax
cmp dword [ebp - 0x14], esi
mov dword [ebp - 0x58], eax
jne 0x478728
cmp eax, esi
je 0x478728
mov edi, eax
mov dword [ebp - 0x10], edi
jmp 0x478737
xor edi, edi
cmp dword [ebp - 0x14], esi
mov dword [ebp - 0x10], edi
je 0x478737
cmp dword [ebp - 0x24], esi
jne 0x47874b
cmp eax, esi
je 0x47874b
cmp edi, esi
je 0x47874b
push eax
call fcn.0043863a
pop ecx
mov dword [ebp - 4], eax
jmp 0x47874e
mov dword [ebp - 4], esi
lea eax, [ebp - 0x34]
push 4
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x6c], eax
call fcn.00493048
cmp eax, esi
pop ecx
je 0x478774
mov ecx, dword [ebp - 0xc]
push 1
push dword [ecx + 0x44]
mov ecx, eax
call fcn.00438009
jmp 0x478776
xor eax, eax
cmp dword [ebp - 0x14], esi
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x48]
mov dword [ebp - 8], eax
je 0x47878c
xor edi, edi
lea eax, [ebp - 0x20]
push 0x9c
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x68], eax
call fcn.00493048
cmp eax, esi
pop ecx
je 0x4787b1
push edi
push dword [ebp - 0xc]
mov ecx, eax
call fcn.0042efec
jmp 0x4787b3
xor eax, eax
cmp dword [ebp - 0x14], esi
mov dword [ebp - 0x20], eax
jne 0x4787c2
mov byte [eax + 0x91], 1
cmp dword [ebp - 0x14], 0
mov edi, dword [ebp - 0x20]
mov esi, 0x4c0fb8
jne 0x4787d9
cmp dword [ebp - 0x10], 0
jne 0x4787d9
mov dword [edi + 0x24], esi
mov eax, dword [ebp - 8]
push 0
mov dword [edi + 0x48], eax
push dword [ebp - 0x3c]
mov ecx, edi
call fcn.00448eba
cmp dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x64]
mov dword [edi + 0x44], eax
mov dword [ebp - 8], esi
je 0x4787ff
mov eax, dword [ebp - 0xc]
jmp 0x47880f
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x478812
mov eax, dword [eax + 0x150]
mov dword [edi + 0x24], eax
mov dword [ebp - 8], eax
mov esi, 0x4c1b94
push esi
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
push dword [ebp - 8]
mov ecx, edi
push dword [ebp - 0xc]
call fcn.0043a5a2
cmp dword [ebp - 0x28], 0
je 0x47883d
push 0
push edi
xor eax, eax
call fcn.0044c909
pop ecx
pop ecx
cmp dword [ebp - 0x1c], 0
jne 0x478857
add dword [0x4c1338], 1
cmp dword [ebp - 0x30], 0
je 0x478857
add dword [0x4c133c], 1
cmp byte [0x4c0de4], 0
jne 0x478867
mov byte [0x4c0de4], 1
push esi
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
cmp dword [ebp - 0x28], 0
mov eax, dword [ebp - 0xc]
mov cl, byte [eax + 0x92]
mov byte [edi + 0x92], cl
mov al, byte [eax + 9]
mov byte [edi + 9], al
je 0x47888d
mov byte [edi + 9], 1
push dword [ebp + 8]
lea ecx, [ebp - 0x18]
call fcn.00446497
push 0x44
lea ecx, [ebp - 8]
call fcn.0043dc74
mov esi, dword [ebp - 8]
push esi
call fcn.00437dec
mov eax, dword [ebp - 0xc]
or ebx, dword [ebp - 0x28]
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 - 0x58]
mov dword [esi + 0x1c], eax
mov eax, dword [ebp - 0x2c]
mov dword [esi + 0x20], eax
mov eax, dword [ebp - 0x1c]
mov dword [esi + 0x24], eax
mov eax, dword [ebp - 0x60]
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], eax
mov eax, dword [ebp - 0x64]
mov dword [esi + 0x30], eax
mov eax, dword [ebp - 0x10]
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
lea eax, [ebp - 0x38]
push eax
push 0x10000
push esi
push 0x478177
push dword [ebp - 0x4c]
mov dword [ebp - 0x38], ecx
push ecx
mov byte [ebp + 0xb], cl
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov edi, eax
xor ebx, ebx
test edi, edi
jne 0x478954
cmp dword [ebp - 0x1c], ebx
jne 0x478954
mov esi, 0x4c1b94
push esi
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
sub dword [0x4c1338], 1
cmp dword [ebp - 0x30], ebx
je 0x47894d
sub dword [0x4c133c], 1
push esi
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov eax, dword [0x4c0df8]
cmp eax, ebx
je 0x478964
push eax
call dword [sym.imp.KERNEL32.DLL_SetEvent]
cmp edi, ebx
je 0x47896d
mov dword [ebp + 0xc], ebx
jmp 0x47897d
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, ebx
jne 0x47897a
xor eax, eax
inc eax
mov dword [ebp + 0xc], eax
cmp edi, ebx
je 0x4789a0
cmp dword [ebp - 0x50], 0x80000000
je 0x478994
push dword [ebp - 0x50]
push edi
call dword [sym.imp.KERNEL32.DLL_SetThreadPriority]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x20], ebx
push dword [ebp - 0x54]
mov esi, dword [ebp - 0xc]
push dword [ebp - 0x38]
push esi
call fcn.0044023a
mov eax, dword [ebp - 0x5c]
add esp, 0xc
cmp eax, ebx
je 0x4789d1
cmp word [eax], bx
je 0x4789d1
push eax
push edi
push esi
call fcn.00426b76
add esp, 0xc
test eax, eax
je 0x4789d1
mov byte [ebp + 0xb], 1
cmp dword [ebp - 0x24], ebx
je 0x478a05
cmp edi, ebx
je 0x478a05
cmp dword [ebp - 0x38], ebx
je 0x478a05
push dword [ebp - 0x38]
lea eax, [ebp - 0xa8]
push 0x4b1504
push eax
call dword [sym.imp.USER32.DLL_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0xa8]
push eax
mov ecx, esi
call fcn.00425e9f
cmp dword [ebp - 4], ebx
je 0x478a21
cmp edi, ebx
jne 0x478a25
push dword [esi + 0x28]
push 1
push 0x451
push dword [ebp - 4]
call dword [sym.imp.USER32.DLL_SendMessageW]
cmp edi, ebx
je 0x478a32
cmp byte [ebp + 0xb], 0
jne 0x478a32
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea ecx, [ebp - 8]
call fcn.00437e1a
lea ecx, [ebp - 0x18]
call fcn.00437e1a
lea ecx, [ebp - 0x68]
call fcn.00446364
lea ecx, [ebp - 0x6c]
call fcn.0046fae8
mov esi, dword [ebp + 0xc]
lea ecx, [ebp - 0x3c]
call fcn.00437e1a
lea ecx, [ebp - 0x40]
call fcn.00437e1a
lea ecx, [ebp - 0x44]
call fcn.00437e1a
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8