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

Disassembly:
sub esp, 0x64
xor ecx, ecx
cmp dword [esp + 0x78], ecx
push ebx
push esi
push edi
push ebp
je 0x45f260
mov eax, 1
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], ecx
mov dword [esp + 0x68], ecx
mov dword [esp + 0x6c], ecx
mov ecx, dword [esp + 0x7c]
cmp dword [ecx], 0xa
jne 0x45f0a2
mov eax, dword [esp + 0x84]
jmp 0x45f0a9
mov eax, dword [esp + 0x80]
lea esi, [eax + 0x14]
mov ecx, dword [eax + 0x10]
test ecx, ecx
jle 0x45f0cb
xor edx, edx
mov eax, dword [esi]
mov ebx, dword [esi + 4]
mov dword [esp + edx + 0x10], eax
mov dword [esp + edx + 0x54], ebx
add esi, 0xc
add edx, 4
dec ecx
jne 0x45f0b5
mov dword [esp + 0x50], 0
cmp dword [esp + 0x28], 0
jle 0x45f219
mov eax, dword [esp + 0x78]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x48], 0
cmp dword [esp + 0x24], 0
jle 0x45f1ff
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x44], eax
mov dword [esp + 0x40], 0
cmp dword [esp + 0x20], 0
jle 0x45f1e5
mov eax, dword [esp + 0x44]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], 0
cmp dword [esp + 0x1c], 0
jle 0x45f1cb
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x34], eax
xor edi, edi
cmp dword [esp + 0x18], edi
jle 0x45f1b1
mov eax, dword [esp + 0x34]
mov dword [esp + 0x30], eax
xor ebx, ebx
cmp dword [esp + 0x14], ebx
jle 0x45f1a2
mov eax, dword [esp + 0x30]
mov dword [esp + 0x2c], eax
xor ebp, ebp
cmp dword [esp + 0x10], ebp
jle 0x45f193
mov esi, dword [esp + 0x2c]
mov eax, dword [0x476218]
push esi
mov edx, dword [esp + 0x80]
mov ecx, dword [eax + 0x14]
mov dword [esp + 0x74], ecx
push edx
call fcn.0045f280
add esp, 8
test eax, eax
jne 0x45f223
add esi, dword [esp + 0x54]
inc ebp
cmp ebp, dword [esp + 0x10]
jl 0x45f163
mov eax, dword [esp + 0x58]
inc ebx
add dword [esp + 0x2c], eax
cmp ebx, dword [esp + 0x14]
jl 0x45f157
mov eax, dword [esp + 0x5c]
inc edi
add dword [esp + 0x30], eax
cmp edi, dword [esp + 0x18]
jl 0x45f147
mov eax, dword [esp + 0x60]
inc dword [esp + 0x38]
mov ecx, dword [esp + 0x38]
add dword [esp + 0x34], eax
cmp dword [esp + 0x1c], ecx
jg 0x45f137
mov eax, dword [esp + 0x64]
inc dword [esp + 0x40]
mov ecx, dword [esp + 0x40]
add dword [esp + 0x3c], eax
cmp dword [esp + 0x20], ecx
jg 0x45f11c
mov eax, dword [esp + 0x68]
inc dword [esp + 0x48]
mov ecx, dword [esp + 0x48]
add dword [esp + 0x44], eax
cmp dword [esp + 0x24], ecx
jg 0x45f101
mov eax, dword [esp + 0x6c]
inc dword [esp + 0x50]
mov ecx, dword [esp + 0x50]
add dword [esp + 0x4c], eax
cmp dword [esp + 0x28], ecx
jg 0x45f0e6
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x64
ret
cmp dword [0x476820], 0x17d5
je 0x45f247
cmp dword [0x476820], 0x17d7
je 0x45f247
cmp dword [0x476820], 0x1968
jne 0x45f253
mov eax, dword [0x476218]
mov ecx, dword [esp + 0x70]
mov dword [eax + 0x14], ecx
mov eax, dword [0x476820]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x64
ret
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x7c]
push eax
push ecx
call fcn.0045f280
add esp, 8
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x64
ret