Function at 0x1005c400
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xffffffc0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x438
mov eax, dword [0x1007b210]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebx + 8]
mov esi, dword [edi + 0x44]
mov eax, dword [esi + 0xa0]
mov edx, dword [eax + 8]
mov ecx, dword [esi + 0xa4]
push edx
mov edx, dword [eax + 0xc]
mov dword [ebp - 0x3d4], ecx
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x3f0], edi
mov dword [ebp - 0x374], eax
call fcn.1005bcb0
mov edx, dword [esi + 0x14]
mov dword [ebp - 0x394], eax
mov eax, dword [ebp - 0x374]
mov ecx, dword [eax + 0x44]
mov eax, dword [esi + 8]
mov dword [ebp - 0x3e0], edx
mov edx, dword [esi + 0x250]
mov dword [ebp - 0x3a0], eax
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x3d0], edx
mov edx, dword [edi + 0x14]
mov dword [ebp - 0x3ac], eax
mov eax, dword [edi + 0xc]
mov dword [ebp - 0x3dc], edx
add eax, dword [ebp - 0x3dc]
mov edx, dword [edi + 0x18]
mov dword [ebp - 0x3a4], ecx
mov ecx, dword [esi + 0x10]
mov dword [ebp - 0x3a8], eax
imul eax, ecx
mov dword [ebp - 0x3c4], edx
xor edx, edx
push 0x1a8
push edx
mov dword [ebp - 0x3c8], edx
mov dword [ebp - 0x3d8], edx
mov dword [ebp - 0x3cc], edx
mov dword [ebp - 0x384], edx
mov dword [ebp - 0x3b8], ecx
mov ecx, dword [edi + 0x20]
mov dword [ebp - 0x380], eax
mov eax, dword [edi + 0x1c]
lea edx, [ebp - 0x368]
push edx
mov dword [ebp - 0x398], eax
mov dword [ebp - 0x3b4], ecx
call fcn.1000e230
mov eax, dword [ebp - 0x3a0]
mov dword [ebp - 0x298], eax
mov eax, dword [ebp - 0x374]
mov ecx, dword [eax + 0x20]
mov dword [ebp - 0x294], ecx
mov edx, dword [esi + 0x64]
mov ecx, dword [ebp - 0x394]
mov dword [ebp - 0x2d4], edx
mov eax, dword [eax + 8]
shr eax, 2
and eax, 1
mov dword [ebp - 0x290], eax
and ecx, 0x1000
lea edx, [ebp - 0x1c0]
mov dword [ebp - 0x214], edx
mov edx, dword [edi + 8]
mov dword [ebp - 0x288], ecx
mov eax, dword [esi + 0x6c]
not eax
and eax, 1
mov dword [ebp - 0x20c], eax
mov ecx, dword [esi + 0x78]
mov eax, dword [0x100f0f7c]
add esp, 0x10
mov dword [ebp - 0x1fc], ecx
mov dword [ebp - 0x2a4], edx
test eax, eax
je 0x1005c587
call eax
mov eax, dword [ebp - 0x3a8]
mov dword [ebp - 0x3c0], 0
mov dword [ebp - 0x370], eax
cmp eax, dword [ebp - 0x3c4]
jge 0x1005cb2b
mov edx, dword [ebp - 0x3d0]
mov ecx, eax
imul eax, edx
imul ecx, dword [ebp - 0x3a0]
mov dword [ebp - 0x3bc], ecx
mov ecx, dword [ebp - 0x3ac]
imul ecx, dword [ebp - 0x3a0]
mov dword [ebp - 0x3ec], ecx
mov ecx, dword [ebp - 0x3ac]
imul ecx, edx
mov dword [ebp - 0x3a8], eax
mov dword [ebp - 0x3e4], ecx
lea esp, [esp]
mov ecx, dword [ebp - 0x3e0]
cdq
idiv ecx
imul eax, ecx
mov ecx, dword [ebp - 0x3d0]
lea eax, [eax + ecx - 1]
cdq
idiv ecx
mov ecx, dword [ebp - 0x3b8]
imul eax, ecx
mov dword [ebp - 0x3b0], eax
mov eax, dword [ebp - 0x370]
cmp eax, dword [ebp - 0x3dc]
jne 0x1005c62c
mov dword [ebp - 0x3c0], ecx
mov dword [ebp - 0x36c], 0
test ecx, ecx
jle 0x1005cacd
mov edi, dword [ebp - 0x380]
imul edi, edi, 0x1e8
mov dword [ebp - 0x390], edi
add edi, dword [ebp - 0x3a4]
mov dword [ebp - 0x388], 1
lea edx, [edi + 0x144]
mov dword [ebp - 0x38c], edx
mov eax, dword [ebp - 0x384]
cmp eax, dword [ebp - 0x3c0]
jl 0x1005c6eb
mov ecx, dword [ebp - 0x3b4]
mov eax, dword [ecx]
mov edx, dword [ebp - 0x3b8]
cmp eax, edx
jne 0x1005c6b3
lea eax, [edx + 1]
mov edx, dword [ebp - 0x3c4]
sub edx, dword [ebp - 0x3ac]
cmp dword [ebp - 0x370], edx
jge 0x1005c6b3
mov edx, dword [ecx + 4]
dec edx
jns 0x1005c6ad
xor ecx, ecx
jmp 0x1005c6b1
mov ecx, dword [ecx + 4]
dec ecx
add eax, ecx
sub eax, dword [ebp - 0x36c]
mov ecx, dword [ebp - 0x384]
lea eax, [eax + ecx - 1]
mov dword [ebp - 0x3c0], eax
cmp ecx, eax
jl 0x1005c6eb
mov eax, 1
sub dword [ebp - 0x36c], eax
sub dword [ebp - 0x388], eax
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1005caa8
mov edx, dword [ebp - 0x3d4]
mov ecx, dword [edx + 0x44]
add ecx, dword [ebp - 0x390]
mov eax, dword [ebp - 0x3bc]
add eax, dword [ebp - 0x36c]
mov dword [ebp - 0x3e8], ecx
mov ecx, dword [ebp - 0x38c]
push ecx
mov ecx, dword [esi + 8]
push ecx
lea ecx, [edx + 0x38]
mov edx, dword [ecx]
mov dword [ebp - 0x37c], ecx
mov ecx, dword [ebp - 0x374]
mov ecx, dword [ecx + 0x38]
shl eax, 4
add edx, eax
push edx
add ecx, eax
push ecx
mov dword [ebp - 0x3f8], edi
call dword [0x100f0f78]
mov edx, dword [ebp - 0x38c]
mov ecx, dword [edi + 0x148]
mov dword [edi + 0x154], eax
mov eax, dword [edx]
add esp, 0x10
mov dword [ebp - 0x378], eax
cmp eax, ecx
jg 0x1005c767
mov dword [ebp - 0x378], ecx
mov ecx, dword [edi + 0x14c]
mov edx, dword [edi + 0x150]
cmp ecx, edx
jg 0x1005c779
mov ecx, edx
cmp dword [ebp - 0x378], ecx
jle 0x1005c789
mov ecx, dword [edi + 0x148]
jmp 0x1005c791
mov eax, dword [edi + 0x14c]
mov ecx, edx
cmp eax, ecx
jg 0x1005c797
mov eax, ecx
add eax, eax
add eax, eax
cmp dword [ebp - 0x288], 0
mov dword [ebp - 0x39c], eax
je 0x1005c84a
mov ecx, dword [ebp - 0x3a0]
shr ecx, 1
mov eax, ecx
imul eax, dword [ebp - 0x370]
add eax, dword [ebp - 0x36c]
push ecx
mov dword [ebp - 0x378], ecx
mov ecx, dword [ebp - 0x37c]
mov edx, dword [ecx + 8]
mov ecx, dword [ebp - 0x374]
mov ecx, dword [ecx + 0x40]
add eax, eax
add eax, eax
add eax, eax
add edx, eax
push edx
add ecx, eax
push ecx
mov dword [ebp - 0x3f4], eax
call dword [0x100f0f90]
mov edx, dword [ebp - 0x378]
mov dword [ebp - 0x3fc], eax
mov eax, dword [ebp - 0x37c]
mov ecx, dword [eax + 4]
mov eax, dword [ebp - 0x3f4]
push edx
add ecx, eax
push ecx
mov ecx, dword [ebp - 0x374]
mov edx, dword [ecx + 0x3c]
add edx, eax
push edx
call dword [0x100f0f90]
mov ecx, dword [ebp - 0x3fc]
add ecx, eax
mov dword [ebp - 0x2d8], ecx
add dword [edi + 0x154], ecx
mov eax, dword [ebp - 0x2d8]
add esp, 0x18
add dword [ebp - 0x39c], eax
mov ecx, dword [ebp - 0x3b0]
mov edx, dword [ebp - 0x394]
mov eax, dword [ebp - 0x37c]
push ecx
push edx
mov edx, dword [ebp - 0x370]
push eax
mov eax, dword [ebp - 0x374]
add eax, 0x38
push eax
lea eax, [esi + 0xfc]
push eax
mov eax, dword [ebp - 0x36c]
lea ecx, [ebp - 0x368]
push ecx
mov ecx, dword [ebp - 0x3e8]
push edx
mov edx, dword [ebp - 0x374]
push eax
mov eax, dword [ebp - 0x39c]
push ecx
push edx
push esi
push eax
call fcn.1005b850
add esp, 0x30
test eax, eax
je 0x1005c8de
mov ecx, dword [ebp - 0x388]
mov edx, dword [ebp - 0x398]
mov eax, 1
add dword [ebp - 0x384], eax
add dword [ebp - 0x380], eax
mov eax, 0x1e8
add dword [ebp - 0x390], eax
add edi, eax
add dword [ebp - 0x38c], eax
mov dword [edx], ecx
jmp 0x1005caa8
mov eax, dword [ebp - 0x3b0]
mov edx, dword [ebp - 0x3a4]
push eax
mov eax, dword [ebp - 0x3d4]
mov ecx, dword [eax + 0x44]
push edi
push ecx
push edx
push esi
lea ecx, [ebp - 0x368]
push ecx
mov ecx, dword [ebp - 0x374]
mov edx, dword [ecx + 0xc]
push edx
mov edx, dword [ebp - 0x394]
push edx
mov edx, dword [esi + 0xcc]
add ecx, 0x38
push ecx
mov dword [ebp - 0x378], ecx
mov ecx, dword [esi + 0xe4]
push ecx
mov ecx, dword [esi + 0xc0]
push edx
mov edx, dword [ebp - 0x370]
push ecx
mov ecx, dword [ebp - 0x36c]
add eax, 0x38
push eax
mov dword [ebp - 0x37c], eax
call fcn.1005aea0
mov ecx, dword [ebp - 0x374]
mov eax, dword [ecx + 0xc]
add esp, 0x34
test eax, 0x100
je 0x1005c9b4
mov edx, dword [ebp - 0x3b0]
push edx
mov edx, dword [ecx + 0x14]
mov ecx, dword [ecx + 8]
push edx
lea edx, [esi + 0xfc]
push edx
mov edx, dword [ebp - 0x37c]
push edx
mov edx, dword [ebp - 0x378]
push edx
mov edx, dword [ebp - 0x394]
push ecx
mov ecx, dword [ebp - 0x36c]
push eax
mov eax, dword [ebp - 0x370]
push edx
mov edx, dword [ebp - 0x3a4]
push esi
push eax
push ecx
push edx
lea eax, [ebp - 0x368]
push edi
push eax
call fcn.100641f0
add esp, 0x38
jmp 0x1005ca4d
test eax, 0x1000
je 0x1005ca0f
mov edx, dword [ebp - 0x3b0]
push edx
mov edx, dword [ecx + 0x14]
mov ecx, dword [ecx + 8]
push edx
lea edx, [esi + 0xfc]
push edx
mov edx, dword [ebp - 0x37c]
push edx
mov edx, dword [ebp - 0x378]
push edx
mov edx, dword [ebp - 0x394]
push ecx
mov ecx, dword [ebp - 0x36c]
push eax
mov eax, dword [ebp - 0x370]
push edx
mov edx, dword [ebp - 0x3a4]
push esi
push eax
push ecx
push edx
lea eax, [ebp - 0x368]
push edi
push eax
call fcn.10064640
add esp, 0x38
jmp 0x1005ca4d
mov edx, dword [ebp - 0x39c]
mov ecx, dword [ecx + 0x14]
push edx
mov edx, dword [ebp - 0x37c]
push ecx
lea ecx, [esi + 0xfc]
push ecx
mov ecx, dword [ebp - 0x378]
push edx
mov edx, dword [ebp - 0x370]
push ecx
push eax
mov eax, dword [ebp - 0x36c]
push esi
push edx
push eax
lea eax, [ebp - 0x368]
call fcn.1005a5c0
add esp, 0x24
mov ecx, dword [ebp - 0x388]
mov edx, dword [ebp - 0x398]
mov eax, 1
add dword [ebp - 0x384], eax
add dword [ebp - 0x380], eax
mov eax, 0x1e8
add dword [ebp - 0x390], eax
add dword [ebp - 0x38c], eax
mov dword [edx], ecx
add edi, eax
mov eax, dword [ebp - 0x290]
push eax
mov eax, dword [ebp - 0x3f8]
lea ecx, [ebp - 0x3cc]
push ecx
lea edx, [ebp - 0x3c8]
push edx
lea ecx, [ebp - 0x3d8]
call fcn.1005bd50
add esp, 0xc
mov eax, dword [ebp - 0x36c]
inc dword [ebp - 0x388]
inc eax
mov dword [ebp - 0x36c], eax
cmp eax, dword [ebp - 0x3b8]
jl 0x1005c66c
mov edi, dword [ebp - 0x3f0]
mov ecx, dword [ebp - 0x3ac]
mov edx, dword [esi + 0x10]
lea eax, [ecx - 1]
imul edx, eax
add dword [ebp - 0x380], edx
mov edx, dword [ebp - 0x370]
mov eax, 4
add dword [ebp - 0x398], eax
add dword [ebp - 0x3b4], eax
mov eax, dword [ebp - 0x3a8]
add eax, dword [ebp - 0x3e4]
add edx, ecx
mov ecx, dword [ebp - 0x3ec]
add dword [ebp - 0x3bc], ecx
mov dword [ebp - 0x370], edx
mov dword [ebp - 0x3a8], eax
cmp edx, dword [ebp - 0x3c4]
jl 0x1005c5f0
mov esi, dword [ebp - 0x3c8]
push esi
call fcn.100575a0
mov edx, dword [ebp - 0x3d8]
mov ecx, dword [ebp - 4]
mov dword [edi + 0x30], eax
mov eax, dword [ebp - 0x3cc]
add esp, 4
mov dword [edi + 0x24], esi
mov dword [edi + 0x28], edx
mov dword [edi + 0x2c], eax
pop edi
xor ecx, ebp
pop esi
call fcn.10007f62
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret