Function at 0x1005be30
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, 0x3f8
mov eax, dword [0x1007b210]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov ecx, dword [ebx + 0x10]
mov edx, dword [ebx + 0x14]
mov eax, dword [ebx + 8]
mov dword [ebp - 0x36c], ecx
mov ecx, dword [ebx + 0x18]
mov dword [ebp - 0x3c4], edx
mov edx, dword [ebx + 0x1c]
mov esi, dword [ebx + 0xc]
mov dword [ebp - 0x3a4], ecx
mov ecx, dword [ebx + 0x20]
mov dword [ebp - 0x3c0], edx
mov edx, dword [esi + 0x44]
mov dword [ebp - 0x384], ecx
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x388], edx
mov edx, dword [eax + 0x14]
mov edi, dword [esi + 8]
mov dword [ebp - 0x37c], eax
mov eax, dword [eax + 8]
mov dword [ebp - 0x3a0], ecx
mov ecx, dword [esi + 0x10]
mov dword [ebp - 0x3ac], edx
mov edx, dword [esi + 0xc]
push edi
mov dword [ebp - 0x398], eax
call fcn.1005bcb0
mov dword [ebp - 0x380], eax
xor eax, eax
push 0x1a8
push eax
lea ecx, [ebp - 0x368]
push ecx
mov dword [ebp - 0x3b0], eax
mov dword [ebp - 0x3b4], eax
mov dword [ebp - 0x3a8], eax
call fcn.1000e230
mov edx, dword [ebp - 0x398]
mov eax, dword [esi + 0x20]
mov dword [ebp - 0x298], edx
mov edx, dword [ebp - 0x380]
and edx, 0x1000
mov dword [ebp - 0x294], eax
mov eax, dword [ebp - 0x37c]
mov ecx, dword [eax + 0x64]
mov dword [ebp - 0x288], edx
mov edx, dword [eax + 0x6c]
mov eax, dword [eax + 0x78]
mov dword [ebp - 0x2d4], ecx
lea ecx, [ebp - 0x1c0]
not edx
and edx, 1
shr edi, 2
mov dword [ebp - 0x214], ecx
mov ecx, dword [ebp - 0x3a4]
mov dword [ebp - 0x1fc], eax
mov eax, dword [0x100f0f7c]
and edi, 1
mov dword [ebp - 0x20c], edx
mov edx, dword [ecx + 4]
add esp, 0x10
mov dword [ebp - 0x290], edi
mov dword [ebp - 0x2a4], edx
test eax, eax
je 0x1005bf72
call eax
mov edi, dword [ebp - 0x3ac]
xor ecx, ecx
mov dword [ebp - 0x370], 0
cmp edi, ecx
jbe 0x1005c3bb
mov eax, dword [ebp - 0x3a0]
imul eax, eax, 0x1e8
mov dword [ebp - 0x3d0], eax
mov eax, dword [ebp - 0x398]
shl eax, 4
mov dword [ebp - 0x3b8], ecx
mov dword [ebp - 0x39c], ecx
mov dword [ebp - 0x394], ecx
mov dword [ebp - 0x3cc], eax
mov eax, dword [ebp - 0x39c]
xor edx, edx
div edi
mov ecx, dword [ebx + 0x28]
xor edx, edx
mov dword [ebp - 0x374], 0
imul eax, edi
lea eax, [eax + ecx - 1]
div ecx
mov edx, dword [ebp - 0x3a0]
imul eax, edx
mov dword [ebp - 0x38c], eax
test edx, edx
je 0x1005c394
mov ecx, dword [ebp - 0x3b8]
mov edx, dword [ebp - 0x394]
mov eax, ecx
add ecx, dword [ebp - 0x3d0]
mov dword [ebp - 0x390], edx
mov dword [ebp - 0x3b8], ecx
jmp 0x1005c02c
mov eax, dword [ebp - 0x3d4]
mov edx, dword [ebp - 0x390]
mov ecx, dword [ebp - 0x388]
lea edi, [eax + ecx]
mov ecx, dword [ebp - 0x36c]
mov ecx, dword [ecx + 0x44]
add ecx, eax
add eax, 0x1e8
mov dword [ebp - 0x3d4], eax
lea eax, [edi + 0x144]
push eax
mov eax, dword [ebp - 0x37c]
mov dword [ebp - 0x3d8], ecx
mov ecx, dword [eax + 8]
mov eax, dword [ebp - 0x36c]
mov eax, dword [eax + 0x38]
push ecx
mov ecx, dword [esi + 0x38]
add eax, edx
push eax
add ecx, edx
push ecx
call dword [0x100f0f78]
mov ecx, dword [edi + 0x148]
mov dword [edi + 0x154], eax
mov eax, dword [edi + 0x144]
add esp, 0x10
mov dword [ebp - 0x378], eax
cmp eax, ecx
jg 0x1005c09f
mov dword [ebp - 0x378], ecx
mov ecx, dword [edi + 0x14c]
mov edx, dword [edi + 0x150]
cmp ecx, edx
jg 0x1005c0b1
mov ecx, edx
cmp dword [ebp - 0x378], ecx
jle 0x1005c0c1
mov ecx, dword [edi + 0x148]
jmp 0x1005c0c9
mov eax, dword [edi + 0x14c]
mov ecx, edx
cmp eax, ecx
jg 0x1005c0cf
mov eax, ecx
cmp dword [ebp - 0x288], 0
lea edx, [eax*4]
mov dword [ebp - 0x378], edx
je 0x1005c179
mov ecx, dword [ebp - 0x398]
mov edx, dword [esi + 0x40]
shr ecx, 1
mov eax, ecx
imul eax, dword [ebp - 0x370]
add eax, dword [ebp - 0x374]
push ecx
mov dword [ebp - 0x3dc], ecx
mov ecx, dword [ebp - 0x36c]
mov ecx, dword [ecx + 0x40]
add eax, eax
add eax, eax
add eax, eax
add ecx, eax
push ecx
add edx, eax
push edx
mov dword [ebp - 0x3bc], eax
call dword [0x100f0f90]
mov edx, dword [esi + 0x3c]
mov dword [ebp - 0x3c8], eax
mov eax, dword [ebp - 0x3dc]
push eax
mov eax, dword [ebp - 0x36c]
mov ecx, dword [eax + 0x3c]
mov eax, dword [ebp - 0x3bc]
add ecx, eax
push ecx
add edx, eax
push edx
call dword [0x100f0f90]
mov ecx, dword [ebp - 0x3c8]
add ecx, eax
mov dword [ebp - 0x2d8], ecx
add dword [edi + 0x154], ecx
mov eax, dword [ebp - 0x2d8]
add esp, 0x18
add dword [ebp - 0x378], eax
mov ecx, dword [ebp - 0x38c]
mov edx, dword [ebp - 0x380]
mov eax, dword [ebp - 0x36c]
push ecx
push edx
mov edx, dword [ebp - 0x370]
add eax, 0x38
push eax
lea eax, [esi + 0x38]
push eax
mov eax, dword [ebp - 0x384]
push eax
mov eax, dword [ebp - 0x374]
lea ecx, [ebp - 0x368]
push ecx
mov ecx, dword [ebp - 0x3d8]
push edx
mov edx, dword [ebp - 0x37c]
push eax
mov eax, dword [ebp - 0x378]
push ecx
push esi
push edx
push eax
call fcn.1005b850
add esp, 0x30
test eax, eax
jne 0x1005c36b
mov ecx, dword [ebp - 0x38c]
mov eax, dword [ebp - 0x36c]
mov edx, dword [eax + 0x44]
push ecx
mov ecx, dword [ebp - 0x388]
push edi
push edx
mov edx, dword [ebp - 0x37c]
push ecx
push edx
mov edx, dword [esi + 0xc]
lea ecx, [ebp - 0x368]
push ecx
mov ecx, dword [ebp - 0x380]
push edx
mov edx, dword [ebp - 0x3c0]
push ecx
lea ecx, [esi + 0x38]
push ecx
mov ecx, dword [edx]
mov edx, dword [ebp - 0x3a4]
push ecx
mov ecx, dword [edx]
mov edx, dword [ebp - 0x3c4]
push ecx
mov ecx, dword [edx]
mov edx, dword [ebp - 0x370]
push ecx
mov ecx, dword [ebp - 0x374]
add eax, 0x38
push eax
call fcn.1005aea0
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x14]
add esp, 0x34
test eax, 0x100
je 0x1005c2a7
mov edx, dword [ebp - 0x38c]
push edx
mov edx, dword [ebp - 0x384]
push ecx
mov ecx, dword [ebp - 0x36c]
push edx
mov edx, dword [ebp - 0x380]
add ecx, 0x38
push ecx
lea ecx, [esi + 0x38]
push ecx
mov ecx, dword [esi + 8]
push ecx
mov ecx, dword [ebp - 0x370]
push eax
mov eax, dword [ebp - 0x37c]
push edx
mov edx, dword [ebp - 0x374]
push eax
mov eax, dword [ebp - 0x388]
push ecx
push edx
push eax
lea ecx, [ebp - 0x368]
push edi
push ecx
call fcn.100641f0
add esp, 0x38
jmp 0x1005c346
test eax, 0x1000
je 0x1005c305
mov edx, dword [ebp - 0x38c]
push edx
mov edx, dword [ebp - 0x384]
push ecx
mov ecx, dword [ebp - 0x36c]
push edx
mov edx, dword [ebp - 0x380]
add ecx, 0x38
push ecx
lea ecx, [esi + 0x38]
push ecx
mov ecx, dword [esi + 8]
push ecx
mov ecx, dword [ebp - 0x370]
push eax
mov eax, dword [ebp - 0x37c]
push edx
mov edx, dword [ebp - 0x374]
push eax
mov eax, dword [ebp - 0x388]
push ecx
push edx
push eax
lea ecx, [ebp - 0x368]
push edi
push ecx
call fcn.10064640
add esp, 0x38
jmp 0x1005c346
mov edx, dword [ebp - 0x378]
push edx
mov edx, dword [ebp - 0x384]
push ecx
mov ecx, dword [ebp - 0x36c]
push edx
mov edx, dword [ebp - 0x374]
add ecx, 0x38
push ecx
lea ecx, [esi + 0x38]
push ecx
mov ecx, dword [ebp - 0x370]
push eax
mov eax, dword [ebp - 0x37c]
push eax
push ecx
push edx
lea eax, [ebp - 0x368]
call fcn.1005a5c0
add esp, 0x24
mov eax, dword [ebp - 0x290]
push eax
lea ecx, [ebp - 0x3a8]
push ecx
lea edx, [ebp - 0x3b0]
push edx
mov eax, edi
lea ecx, [ebp - 0x3b4]
call fcn.1005bd50
add esp, 0xc
mov eax, dword [ebp - 0x374]
add dword [ebp - 0x390], 0x10
inc eax
mov dword [ebp - 0x374], eax
cmp eax, dword [ebp - 0x3a0]
jb 0x1005c020
mov ecx, dword [ebx + 0x28]
mov edi, dword [ebp - 0x3ac]
mov eax, dword [ebp - 0x370]
add dword [ebp - 0x39c], ecx
mov ecx, dword [ebp - 0x3cc]
add dword [ebp - 0x394], ecx
inc eax
mov dword [ebp - 0x370], eax
cmp eax, edi
jb 0x1005bfbf
mov edx, dword [ebp - 0x3b0]
push edx
call fcn.100575a0
mov ecx, dword [ebp - 0x3a8]
add esp, 4
mov dword [esi + 0x12c], ecx
mov ecx, dword [ebp - 4]
mov dword [esi + 0x20], eax
mov eax, dword [ebp - 0x3b4]
pop edi
mov dword [esi + 0x128], eax
xor ecx, ebp
pop esi
call fcn.10007f62
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret