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

Disassembly:
sub esp, 8
push ebx
push esi
mov esi, dword [esp + 0x14]
push edi
xor edi, edi
mov eax, dword [esi + 0x60]
inc eax
test eax, eax
jle 0x1005bb23
xor ebx, ebx
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x114]
mov edx, dword [esi + 8]
push ecx
lea ecx, [eax + ebx + 0xe4]
push edx
push ecx
call fcn.10058f60
mov edx, dword [esi + 0x60]
add esp, 0xc
inc edi
add ebx, 0xf0
inc edx
cmp edi, edx
jl 0x1005baf6
mov eax, dword [esi + 0x114]
push eax
call fcn.1005ff20
mov eax, dword [esi + 0x60]
add esp, 4
test eax, eax
jle 0x1005bb98
xor edi, edi
test eax, eax
jle 0x1005bb89
mov ecx, dword [esi + 0x124]
mov eax, dword [ecx + edi*4]
test eax, eax
je 0x1005bb81
mov edx, dword [esi + 0xc]
mov ecx, dword [esi + 8]
push edx
add eax, 0x38
push ecx
push eax
call fcn.10058f60
mov edx, dword [esi + 0x124]
mov eax, dword [edx + edi*4]
mov ecx, dword [eax + 0x44]
push ecx
call fcn.1005ff20
mov edx, dword [esi + 0x124]
mov eax, dword [edx + edi*4]
push eax
call fcn.1005ff20
add esp, 0x14
mov eax, dword [esi + 0x60]
inc edi
cmp edi, eax
jl 0x1005bb3f
mov ecx, dword [esi + 0x124]
push ecx
call fcn.1005ff20
add esp, 4
mov edx, dword [esi + 0xc]
mov ecx, dword [esi + 0xa0]
mov eax, dword [esi + 8]
push edx
add ecx, 0x38
push eax
push ecx
call fcn.10058f60
mov edx, dword [esi + 0xc]
mov ecx, dword [esi + 0xa4]
mov eax, dword [esi + 8]
push edx
add ecx, 0x38
push eax
push ecx
call fcn.10058f60
mov edx, dword [esi + 0xc]
mov eax, dword [esi + 8]
push edx
lea ecx, [esi + 0xc0]
push eax
push ecx
call fcn.10058f60
mov edx, dword [esi + 0xc]
mov eax, dword [esi + 8]
push edx
lea ecx, [esi + 0xcc]
push eax
push ecx
call fcn.10058f60
mov edx, dword [esi + 0xc]
mov eax, dword [esi + 8]
push edx
lea ecx, [esi + 0xe4]
push eax
push ecx
call fcn.10058f60
mov edx, dword [esi + 0xc]
mov eax, dword [esi + 8]
push edx
lea ecx, [esi + 0x128]
push eax
push ecx
call fcn.10058f60
mov edx, dword [esi + 0xc]
mov eax, dword [esi + 8]
add esp, 0x48
lea ecx, [esi + 0x134]
push edx
push eax
push ecx
call fcn.10058f60
mov edx, dword [esi + 0xc]
mov eax, dword [esi + 8]
push edx
lea ecx, [esi + 0x140]
push eax
push ecx
call fcn.10058f60
mov edx, dword [esi + 0xc]
mov eax, dword [esi + 8]
push edx
lea ecx, [esi + 0xfc]
push eax
push ecx
call fcn.10058f60
mov al, byte [esi + 0x18]
add esp, 0x24
test al, 1
je 0x1005bc8a
mov edx, dword [esi + 0xc]
mov eax, dword [esi + 8]
push edx
lea ecx, [esi + 0xa8]
push eax
push ecx
call fcn.10058f60
mov edx, dword [esi + 0xc]
mov eax, dword [esi + 8]
push edx
lea ecx, [esi + 0xb4]
push eax
push ecx
call fcn.10058f60
add esp, 0x18
mov edx, dword [esi + 0xa0]
mov eax, dword [edx + 0x44]
push eax
call fcn.1005ff20
mov ecx, dword [esi + 0xa0]
push ecx
call fcn.1005ff20
mov edx, dword [esi + 0xa4]
mov eax, dword [edx + 0x44]
push eax
call fcn.1005ff20
mov ecx, dword [esi + 0xa4]
push ecx
call fcn.1005ff20
mov al, byte [esi + 0x18]
add esp, 0x10
test al, 4
je 0x1005bcd9
mov edx, dword [esi + 0x98]
push edx
call fcn.1005ff20
add esp, 4
test byte [esi + 0x18], 8
je 0x1005bcee
mov eax, dword [esi + 0x9c]
push eax
call fcn.1005ff20
add esp, 4
mov eax, dword [esi + 0x90]
test eax, eax
jle 0x1005bd56
mov edx, dword [esi + 0x248]
xor ecx, ecx
mov dword [esp + 0xc], ecx
xor edi, edi
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], 0x10305
test eax, eax
mov dword [esp + 0x10], edx
jle 0x1005bd47
mov eax, dword [esi + 0x94]
mov ecx, dword [eax + edi*8]
lea eax, [eax + edi*8]
test ecx, ecx
je 0x1005bd3c
mov eax, dword [eax + 4]
lea edx, [esp + 0xc]
push 0
push edx
push 2
push eax
call ecx
add esp, 0x10
mov eax, dword [esi + 0x90]
inc edi
cmp edi, eax
jl 0x1005bd1a
mov ecx, dword [esi + 0x94]
push ecx
call fcn.1005ff20
add esp, 4
mov edx, dword [esi + 0x78]
push edx
call fcn.1005ff20
mov eax, dword [esi + 0x88]
add esp, 4
test eax, eax
jbe 0x1005bd7b
mov eax, dword [esi + 0x8c]
push eax
call fcn.1005ff20
add esp, 4
mov eax, dword [esi + 0x240]
test eax, eax
jle 0x1005be2b
mov ebx, 1
mov edi, 0x48
mov eax, dword [esi + 0x240]
mov ecx, dword [esi + 0x250]
cmp eax, ecx
mov edx, eax
jl 0x1005bda7
mov edx, ecx
cmp edx, 1
jge 0x1005bdb3
mov eax, 1
jmp 0x1005bdb9
cmp eax, ecx
jl 0x1005bdb9
mov eax, ecx
cmp ebx, eax
jge 0x1005bde6
mov ecx, dword [esi + 0x244]
mov edx, dword [edi + ecx + 0x3c]
push edx
call fcn.1005ff20
mov eax, dword [esi + 0x244]
mov ecx, dword [edi + eax + 0x40]
push ecx
call fcn.1005ff20
add esp, 8
inc ebx
add edi, 0x48
jmp 0x1005bd93
mov edx, dword [esi + 0x244]
mov eax, dword [edx + 0x38]
test eax, eax
je 0x1005bdfc
push eax
call fcn.1005ff20
add esp, 4
mov eax, dword [esi + 0x240]
xor edi, edi
test eax, eax
jle 0x1005be2b
xor ebx, ebx
mov eax, dword [esi + 0x244]
mov ecx, dword [ebx + eax + 0x1c]
push ecx
call fcn.1005ff20
mov eax, dword [esi + 0x240]
add esp, 4
inc edi
add ebx, 0x48
cmp edi, eax
jl 0x1005be0a
mov edx, dword [esi + 0x244]
push edx
call fcn.1005ff20
push esi
call fcn.1005ff20
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 8
ret