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

Disassembly:
sub esp, 0x58
push ebp
push esi
push edi
mov edi, dword [esp + 0x68]
mov eax, dword [edi + 0x20]
xor ebp, ebp
cmp eax, ebp
mov esi, ecx
mov dword [esp + 0xc], esi
jne 0x45fb6d
cmp dword [esi + 0x78], ebp
je 0x45fb6d
mov eax, dword [edi + 0x1c]
push 0x14
mov dword [esp + 0x1c], eax
mov dword [edi + 0x20], 1
call fcn.00439320
add esp, 4
cmp eax, ebp
je 0x45f992
movzx ecx, word [edi + 0x2e]
push 1
push ecx
mov ecx, eax
call fcn.00439340
jmp 0x45f994
xor eax, eax
push 0x14
mov dword [edi + 0x1c], eax
call fcn.00439320
add esp, 4
cmp eax, ebp
je 0x45f9ba
movzx edx, word [edi + 0x2e]
push 1
push edx
mov ecx, eax
call fcn.00439340
mov dword [0x560bb0], eax
jmp 0x45f9c0
mov dword [0x560bb0], ebp
mov edx, dword [esi + 4]
mov eax, dword [esp + 0x70]
push ebx
push 0x45f8e0
push ebp
lea ecx, [esp + 0x28]
push ecx
push edx
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], eax
call fcn.00501ae0
mov ebx, eax
add esp, 0x10
cmp ebx, ebp
mov dword [esp + 0x14], ebx
je 0x45fb6c
mov al, byte [edi + 0x30]
mov ebp, dword [edi + 0x64]
xor ecx, ecx
test al, 8
movzx eax, word [edi + 0x2e]
je 0x45fa24
mov ch, byte [ebp + eax*4 + 3]
movzx edx, byte [ebp + eax*4 + 1]
mov cl, byte [ebp + eax*4 + 2]
shl ecx, 8
or ecx, edx
movzx edx, byte [ebp + eax*4]
shl ecx, 8
or ecx, edx
jmp 0x45fa2c
mov ch, byte [ebp + eax*2 + 1]
mov cl, byte [ebp + eax*2]
test eax, eax
mov dword [esp + 0x6c], 0
jle 0x45fb11
mov ebx, dword [esp + 0x74]
jmp 0x45fa46
mov ecx, dword [esp + 0x48]
test byte [edi + 0x30], 4
je 0x45fa5b
lea eax, [ecx + ebp]
add ecx, 2
xor ebx, ebx
mov bh, byte [eax + 1]
mov bl, byte [eax]
jmp 0x45fa5c
inc ecx
mov eax, dword [esp + 0x74]
mov dword [esp + 0x48], ecx
push eax
lea ecx, [esp + 0x30]
mov dword [esp + 0x30], 0x53dd7c
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], edi
mov word [esp + 0x3c], bx
mov dword [esp + 0x40], 0
mov byte [esp + 0x44], 0
call fcn.0045e930
mov esi, dword [esp + 0x3c]
test esi, esi
je 0x45fae3
cmp dword [esi + 0x1c], 1
jbe 0x45fae3
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 4]
push esi
push ecx
push eax
call fcn.00501d40
mov eax, dword [esi + 0x2c]
add esp, 0xc
test eax, eax
je 0x45fae3
push 0xc
call fcn.00439320
mov ecx, dword [esi + 0x24]
mov dword [eax], ecx
mov edx, dword [esi + 0x28]
mov dword [eax + 4], edx
mov ecx, dword [esi + 0x2c]
add esp, 4
mov dword [eax + 8], ecx
mov edx, dword [esi + 0x14]
mov ecx, dword [edi + 0x1c]
push eax
push edx
call fcn.00439720
lea ecx, [esp + 0x2c]
mov dword [esp + 0x2c], 0x53dd7c
call fcn.0045e080
mov eax, dword [esp + 0x6c]
movzx ecx, word [edi + 0x2e]
mov esi, dword [esp + 0x10]
inc eax
cmp eax, ecx
mov dword [esp + 0x6c], eax
jl 0x45fa42
mov ebx, dword [esp + 0x14]
mov ebp, dword [esp + 0x1c]
test ebp, ebp
je 0x45fb32
mov edx, dword [edi + 0x1c]
push edx
push 0x45df70
mov ecx, ebp
call fcn.004393d0
mov eax, dword [ebp]
push 1
mov ecx, ebp
call dword [eax]
mov ecx, dword [esi + 4]
push ebx
push ecx
call fcn.0041ea80
mov ecx, dword [0x560bb0]
add esp, 8
push ecx
push 0x45df40
call fcn.004393d0
mov ecx, dword [0x560bb0]
test ecx, ecx
je 0x45fb60
mov edx, dword [ecx]
push 1
call dword [edx]
mov dword [0x560bb0], 0
xor ebp, ebp
pop ebx
mov ecx, dword [edi + 0x1c]
cmp ecx, ebp
mov esi, dword [esp + 0x6c]
mov dword [esp + 0x14], ebp
je 0x45fbb0
mov edx, dword [esi + 0x14]
lea eax, [esp + 0x14]
push eax
push edx
call fcn.004394a0
test eax, eax
je 0x45fbb0
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x45fbb9
mov ecx, dword [eax]
mov dword [esi + 0x24], ecx
mov edx, dword [eax + 4]
mov dword [esi + 0x28], edx
mov eax, dword [eax + 8]
pop edi
mov dword [esi + 0x2c], eax
pop esi
pop ebp
add esp, 0x58
ret 0xc
mov dword [esi + 0x24], ebp
mov dword [esi + 0x28], ebp
mov dword [esi + 0x2c], ebp
pop edi
pop esi
pop ebp
add esp, 0x58
ret 0xc