Function at 0x475c49
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1cc
mov eax, dword [0x4ab09c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
and dword [ebp - 0x18], 0
push ebx
push esi
mov ebx, ecx
mov dword [ebp - 0x2c], eax
call fcn.004227d0
and dword [ebp - 0x48], 0
lea ecx, [ebp - 0x48]
and dword [ebp - 0x44], 0
xor esi, esi
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x28], ecx
push edi
cmp dword [ebx + 0x1c], 0xffffffff
je 0x475c95
mov edi, dword [ebx + 0x1c]
or dword [ebx + 0x1c], 0xffffffff
jmp 0x475ccc
test esi, esi
sete al
movzx eax, al
push eax
push ebx
call fcn.00475752
mov edi, eax
pop ecx
pop ecx
cmp edi, 0xffffffff
jne 0x475cb4
mov byte [0], 0
mov eax, dword [ebp - 0x18]
test al, 1
je 0x475ccc
and eax, 0xfffffffe
lea ecx, [ebp - 0x11c]
mov dword [ebp - 0x18], eax
call fcn.00401f60
push 0x20
call fcn.004521ed
pop ecx
test eax, eax
je 0x475cf6
push dword [ebp - 0x34]
lea ecx, [ebx + 0x24]
push dword [ebp - 0x30]
push ecx
lea ecx, [ebx + 0x20]
push ecx
push dword [ebp - 0x2c]
mov ecx, eax
push edi
push dword [ebx + 0x18]
call fcn.0047563a
jmp 0x475cf8
xor eax, eax
push 0
push 0
push eax
push 0x475a65
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, dword [ebp - 0x28]
mov ecx, edi
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x3c]
push eax
call fcn.00476645
cmp dword [edi], 0
jne 0x475d29
mov byte [0], 0
mov eax, dword [ebp - 0x18]
test al, 2
je 0x475d41
and eax, 0xfffffffd
lea ecx, [ebp - 0x1cc]
mov dword [ebp - 0x18], eax
call fcn.00401f60
inc esi
add edi, 4
mov dword [ebp - 0x28], edi
cmp esi, 2
jb 0x475c86
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x1c]
push 0xffffffffffffffff
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x20]
push eax
push dword [ebx + 0x18]
call dword [sym.imp.KERNEL32.dll_GetQueuedCompletionStatus]
mov edi, dword [ebp - 0x14]
test edi, edi
je 0x475df2
lea esi, [ebx + 0x20]
mov ecx, esi
mov dword [ebp - 0x24], edi
call fcn.004143d0
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebx + 0x24]
call fcn.004765d8
test edi, edi
je 0x475dad
mov ecx, edi
call fcn.00475694
push edi
call fcn.00452220
pop ecx
cmp byte [ebx + 0x2c], 0
jne 0x475db9
cmp dword [ebx + 0x28], 0
je 0x475deb
mov ecx, esi
call fcn.00414420
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x1c]
push 0xffffffffffffffff
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x20]
push eax
push dword [ebx + 0x18]
call dword [sym.imp.KERNEL32.dll_GetQueuedCompletionStatus]
mov edi, dword [ebp - 0x14]
test edi, edi
jne 0x475d85
jmp 0x475df2
mov ecx, esi
call fcn.00414420
push 2
pop esi
push 9
xor eax, eax
lea edi, [ebp - 0x6c]
pop ecx
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x6c], 1
push eax
push ebx
call fcn.0047c5a6
add esp, 0xc
sub esi, 1
jne 0x475df5
lea esi, [ebp - 0x48]
push 0xffffffffffffffff
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
add esi, 4
lea eax, [ebp - 0x40]
cmp esi, eax
jne 0x475e2b
lea edi, [ebx + 0x20]
mov ecx, edi
call fcn.004143d0
lea eax, [ebx + 0x24]
mov esi, dword [eax]
mov dword [ebp - 0x24], eax
mov eax, dword [esi]
mov dword [ebp - 0x38], eax
jmp 0x475e78
mov ebx, dword [eax + 0x10]
test ebx, ebx
je 0x475e6d
mov ecx, ebx
call fcn.00475694
push ebx
call fcn.00452220
pop ecx
lea ecx, [ebp - 0x38]
call fcn.00432ae7
mov eax, dword [ebp - 0x38]
cmp eax, esi
jne 0x475e58
mov ecx, dword [ebp - 0x24]
call fcn.0043ec72
mov ecx, edi
call fcn.00414420
push 2
pop ebx
lea esi, [ebp - 0x40]
pop edi
lea esi, [esi - 4]
dec ebx
cmp dword [esi], 0
je 0x475ea6
push dword [esi]
call fcn.0047b9c7
and dword [esi], 0
pop ecx
test ebx, ebx
jne 0x475e92
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0045248d
mov esp, ebp
pop ebp
ret 4