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

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x1c
cmp byte [eax + 2], 0
push ebx
push ebp
push esi
movzx esi, byte [eax + 0xa]
push edi
mov edi, dword [esp + 0x34]
je 0x45fb64
mov ecx, dword [esp + 0x38]
mov ebp, dword [ecx + 0x1c]
mov ebx, dword [ecx + 0x20]
mov eax, dword [ecx + 0x10]
add ebx, ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
cmp ebx, 0x80
jae 0x45fb36
mov byte [esi + edi], bl
mov eax, 1
jmp 0x45fb4b
mov eax, ebx
cdq
push edx
push eax
lea eax, [esi + edi]
push eax
call fcn.004ae0a0
mov ecx, dword [esp + 0x44]
add esp, 0xc
push dword [ecx + 0xc]
movzx eax, al
push dword [ecx + 8]
add esi, eax
lea eax, [esi + edi]
push eax
call fcn.004ae0a0
add esp, 0xc
jmp 0x45fba1
mov eax, dword [esp + 0x38]
mov ebx, dword [eax + 8]
mov ebp, ebx
mov eax, dword [eax]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x10], eax
cmp ebx, 0x80
jae 0x45fb8d
mov byte [esi + edi], bl
mov eax, 1
jmp 0x45fb9e
mov eax, ebx
cdq
push edx
push eax
lea eax, [esi + edi]
push eax
call fcn.004ae0a0
add esp, 0xc
movzx eax, al
mov ecx, dword [esp + 0x30]
add esi, eax
add edi, esi
movzx eax, word [ecx + 0xe]
mov dword [esp + 0x24], eax
cmp ebx, eax
jg 0x45fbee
lea ecx, [ebx + esi]
cmp ecx, 4
jge 0x45fbc2
mov ecx, 4
mov eax, dword [esp + 0x3c]
push ebp
push dword [esp + 0x14]
push edi
mov dword [eax], ecx
call sub.MSVCRT.dll_memcpy
sub ebx, ebp
lea eax, [edi + ebp]
push ebx
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0x18
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
movzx edx, word [ecx + 0x10]
mov eax, ebx
mov ecx, dword [ecx + 0x34]
sub eax, edx
mov dword [esp + 0x28], edx
xor edx, edx
mov ecx, dword [ecx + 0x24]
sub ecx, 4
div ecx
mov eax, dword [esp + 0x28]
lea ebp, [eax + edx]
cmp ebp, dword [esp + 0x24]
jle 0x45fc16
mov ebp, eax
mov eax, dword [esp + 0x3c]
lea edx, [esi + ebp]
lea ecx, [edx + 4]
mov dword [eax], ecx
mov eax, dword [esp + 0x34]
add eax, edx
mov dword [esp + 0x28], eax
xor eax, eax
mov dword [esp + 0x1c], eax
xor ebx, ebx
mov eax, dword [esp + 0x30]
mov dword [esp + 0x20], ebx
mov eax, dword [eax + 0x34]
mov dword [esp + 0x34], eax
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
jmp 0x45fc50
mov esi, eax
cmp eax, ebp
jle 0x45fc58
mov esi, ebp
cmp ecx, esi
jl 0x45fc69
push esi
push dword [esp + 0x14]
push edi
call sub.MSVCRT.dll_memcpy
jmp 0x45fc85
test ecx, ecx
jle 0x45fc7c
push ecx
push dword [esp + 0x14]
mov esi, ecx
push edi
call sub.MSVCRT.dll_memcpy
jmp 0x45fc85
push esi
push 0
push edi
call sub.MSVCRT.dll_memset
mov eax, dword [esp + 0x20]
add esp, 0xc
sub eax, esi
mov dword [esp + 0x14], eax
test eax, eax
jle 0x45fe34
mov ecx, dword [esp + 0x18]
add edi, esi
add dword [esp + 0x10], esi
sub ecx, esi
mov dword [esp + 0x18], ecx
sub ebp, esi
jne 0x45fc50
mov esi, dword [esp + 0x34]
mov edi, ebx
mov dword [esp + 0x30], ebp
mov dword [esp + 0x24], edi
cmp byte [esi + 0x11], 0
je 0x45fd1e
mov edi, dword [esi + 0x20]
mov ebp, dword [0x5062e0]
jmp 0x45fcd0
inc ebx
cmp ebx, 2
jae 0x45fcda
xor ecx, ecx
jmp 0x45fd07
mov eax, 0xcccccccd
mul dword [esi + 0x24]
lea eax, [ebx - 2]
mov esi, edx
xor edx, edx
shr esi, 2
inc esi
div esi
xor edx, edx
mov ecx, eax
mov eax, ebp
div edi
imul ecx, esi
inc eax
add ecx, 2
cmp ecx, eax
jne 0x45fd03
inc ecx
mov esi, dword [esp + 0x34]
cmp ecx, ebx
je 0x45fcd0
xor edx, edx
mov eax, ebp
div edi
inc eax
cmp ebx, eax
je 0x45fcd0
mov edi, dword [esp + 0x24]
mov dword [esp + 0x20], ebx
push 0
push ebx
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x3c]
push eax
push esi
call fcn.0044fd40
mov ecx, dword [esp + 0x48]
add esp, 0x14
mov ebp, dword [esp + 0x30]
mov esi, eax
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x24], esi
cmp byte [ecx + 0x11], 0
je 0x45fd86
test esi, esi
jne 0x45fe17
lea eax, [esp + 0x24]
test edi, edi
push eax
setne al
add al, 3
push edi
movzx eax, al
push eax
push ebx
push ecx
call fcn.00480d40
mov esi, dword [esp + 0x38]
add esp, 0x14
test esi, esi
je 0x45fd8e
test ebp, ebp
je 0x45fd86
push dword [ebp + 0x48]
call fcn.004aa360
add esp, 4
test esi, esi
jne 0x45fe17
mov ecx, dword [esp + 0x28]
mov eax, ebx
bswap eax
mov dword [ecx], eax
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x45fdf1
mov edx, dword [eax + 0x48]
test byte [edx + 0x1c], 0x20
je 0x45fde8
mov eax, dword [edx + 0x14]
dec dword [eax + 0x78]
mov ecx, dword [eax + 0x88]
mov dword [edx + 0x10], ecx
mov esi, dword [eax + 0x3c]
mov dword [eax + 0x88], edx
push dword [edx + 4]
mov ecx, dword [edx + 0x18]
mov eax, dword [eax + 0x98]
dec ecx
mov edi, dword [esi]
cdq
push edx
push eax
push 0
push ecx
call fcn.0040b170
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
add esp, 0x10
jmp 0x45fdf1
push edx
call fcn.004ab270
add esp, 4
mov edx, dword [ebp + 0x38]
mov eax, dword [esp + 0x34]
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x28], edx
mov dword [edx], 0
mov edi, dword [ebp + 0x38]
mov ebp, dword [eax + 0x24]
add edi, 4
sub ebp, 4
jmp 0x45fc43
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x45fe2a
push dword [eax + 0x48]
call fcn.004aa360
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x45fe47
push dword [eax + 0x48]
call fcn.004aa360
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1c
ret