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

Disassembly:
sub esp, 0xa4
push ebx
push ebp
mov ebx, ecx
push esi
push edi
mov esi, edx
lea ecx, [esp + 0x40]
call fcn.004aa630
lea ecx, [esp + 0x4e]
call fcn.004aa630
lea ecx, [esp + 0x18]
call fcn.004aa630
lea ecx, [esp + 0x28]
call fcn.004aa630
lea ecx, [esp + 0x60]
call fcn.0041e930
mov ecx, 0x15
xor eax, eax
lea edi, [esp + 0x60]
push esi
rep stosd dword es:[edi], eax
mov ecx, dword [esi + 4]
lea eax, [esp + 0x64]
push eax
mov dword [esp + 0xac], ecx
mov dword [esp + 0xa0], 1
call fcn.004d6570
mov ecx, dword [esi + 4]
xor edx, edx
push 4
push ecx
lea ecx, [esp + 0x68]
call fcn.0042cea0
mov edx, dword [esp + 0x64]
mov eax, dword [esp + 0x90]
test eax, eax
mov ebp, dword [edx + 0xc]
je 0x45887e
mov eax, dword [eax + 0xc]
lea ecx, [esp + 0x18]
push eax
call fcn.004a9f10
mov eax, dword [esp + 0x18]
test eax, eax
jle 0x458886
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x2c]
call fcn.004aa040
mov eax, dword [esp + 0x18]
test eax, eax
jg 0x4588ab
mov edx, dword [esp + 0x78]
lea ecx, [esp + 0x18]
mov eax, dword [edx + 0xc]
push eax
call fcn.004a9710
mov ecx, dword [esp + 0x84]
mov edx, dword [ecx + 0xc]
lea ecx, [esp + 0x28]
push edx
call fcn.004a9710
lea eax, [esp + 0x28]
lea edx, [esp + 0x18]
push eax
mov ecx, ebp
call fcn.00412fc0
lea ecx, [esp + 0x18]
mov dword [esp + 0x38], ebx
push ecx
lea ecx, [esp + 0x44]
mov dword [esp + 0x40], esi
mov dword [esp + 0x60], ebp
call fcn.004aa040
lea edx, [esp + 0x28]
lea ecx, [esp + 0x4e]
push edx
call fcn.004aa040
mov eax, dword [esi + 4]
mov ecx, ebp
push 0x40
push 4
push eax
call fcn.004a90b0
mov ecx, dword [ebp + 0x57]
call fcn.004b0cc0
mov ecx, ebp
call fcn.00401a70
mov ebx, eax
push 0
mov ecx, ebx
mov dword [esp + 0x14], ebx
call fcn.004b5f50
test byte [ebx + 0x10], 2
jne 0x45892c
mov edx, dword [ebx]
push 0
push 0xe4
mov ecx, ebx
call dword [edx + 8]
mov edi, eax
mov dword [esp + 0x14], edi
jmp 0x458941
mov ecx, dword [ebx + 8]
push 0
push 0xe4
call fcn.004ac8f0
mov edi, eax
mov dword [esp + 0x14], eax
test edi, edi
je 0x458a75
movsx eax, word [esp + 0x22]
push eax
push 0x4e1
mov ecx, edi
call fcn.004b5db0
mov esi, eax
test esi, esi
je 0x458a75
mov eax, dword [esi + 0x1b]
test eax, eax
jne 0x458988
test byte [edi + 0x10], 2
jne 0x45897d
mov eax, dword [esi + 4]
mov edx, dword [edi]
push eax
mov ecx, edi
call dword [edx + 0x10]
mov ecx, dword [edi + 8]
push esi
call fcn.004acb70
mov esi, eax
test esi, esi
je 0x458a75
movsx ecx, word [esp + 0x32]
mov eax, dword [esi + 0x1b]
cmp eax, ecx
jg 0x458a75
mov ecx, dword [ebp + 0x57]
push eax
push str.Tr_05.5d.500
push 0
call fcn.004ace40
mov ebx, eax
mov al, byte [esi + 0x10]
test al, 2
jne 0x4589c9
mov edx, dword [esi]
push 0
push 0xa5
mov ecx, esi
call dword [edx + 8]
jmp 0x4589d8
mov ecx, dword [esi + 8]
push 0
push 0xa5
call fcn.004ac8f0
test eax, eax
je 0x458a1d
push 0
push 0
push 0
push 3
push 0x38
push ebx
mov ecx, eax
call fcn.004cc840
mov edi, eax
mov eax, dword [esi + 0x1b]
push eax
lea edx, [esp + 0x1c]
mov ecx, edi
call fcn.00412e50
test eax, eax
je 0x458a19
push eax
lea eax, [esp + 0x3c]
push eax
push 0x458ad0
mov ecx, edi
call fcn.004d1c10
test eax, eax
je 0x458a5a
mov edi, dword [esp + 0x14]
mov ecx, dword [esi + 0x1b]
push 0
push ecx
mov ecx, dword [ebp + 0x57]
push str.Tr_05.5d.500
call fcn.004acff0
test byte [edi + 0x10], 2
jne 0x458a41
mov eax, dword [esi + 4]
mov edx, dword [edi]
push eax
mov ecx, edi
call dword [edx + 0x10]
mov ecx, dword [edi + 8]
push esi
call fcn.004acb70
mov esi, eax
mov ebx, dword [esp + 0x10]
test esi, esi
jne 0x458990
jmp 0x458a75
test ebx, ebx
je 0x458a71
mov ecx, dword [esi + 0x1b]
push 0
push ecx
mov ecx, dword [ebp + 0x57]
push str.Tr_05.5d.500
call fcn.004acff0
mov ebx, dword [esp + 0x10]
mov ecx, ebx
call fcn.004b5f90
mov ecx, dword [ebp + 0x57]
call fcn.004b0ce0
lea ecx, [esp + 0x90]
call fcn.004a6c00
lea ecx, [esp + 0x84]
call fcn.004a6c00
lea ecx, [esp + 0x78]
call fcn.004a6c00
lea ecx, [esp + 0x6c]
call fcn.004a6c00
lea ecx, [esp + 0x64]
call fcn.004a6c00
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa4
ret