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

Disassembly:
sub esp, 0x30
push ebx
push ebp
mov ebp, dword [esp + 0x3c]
push esi
xor eax, eax
xor ebx, ebx
mov cl, byte [ebp + 3]
mov esi, dword [ebp + 0x34]
test cl, cl
push edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], esi
mov dword [esp + 0x44], eax
jne 0x45aa4e
mov ebx, 4
mov cl, byte [ebp + 4]
mov edi, dword [esp + 0x48]
test cl, cl
je 0x45aa76
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x60]
add eax, ecx
cdq
push edx
lea edx, [ebx + edi]
push eax
push edx
call fcn.00457da0
add esp, 0xc
add ebx, eax
jmp 0x45aa7e
mov dword [esp + 0x60], eax
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x50]
push eax
lea edx, [ebx + edi]
push ecx
push edx
call fcn.00457da0
add ebx, eax
lea eax, [esp + 0x2c]
push eax
push edi
push ebp
call fcn.0044bd60
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x78]
add esp, 0x18
lea edx, [eax + ecx]
mov cl, byte [ebp + 2]
test cl, cl
mov dword [esp + 0x48], edx
je 0x45aad0
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x5c], 0
mov dword [esp + 0x4c], ecx
mov ecx, eax
mov dword [esp + 0x60], ecx
jmp 0x45ab09
mov eax, dword [esp + 0x54]
test eax, eax
jg 0x45ace5
mov eax, dword [esp + 0x50]
jl 0x45aaed
cmp eax, 0x7fffffff
ja 0x45ace5
mov ecx, dword [esp + 0x4c]
test ecx, ecx
je 0x45ace5
add edx, eax
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x48], edx
mov dword [esp + 0x60], eax
mov ecx, eax
mov eax, dword [esp + 0x3a]
mov ebp, dword [esp + 0x64]
and eax, 0xffff
add ebx, edi
mov dword [ebp], eax
mov eax, dword [esp + 0x38]
mov ebp, dword [esp + 0x36]
and eax, 0xffff
and ebp, 0xffff
add eax, edi
test edx, edx
mov dword [esp + 0x64], eax
jle 0x45acb5
jmp 0x45ab4a
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x48]
test ebp, ebp
jne 0x45ac37
mov al, byte [esi + 0x11]
mov ecx, dword [esp + 0x44]
test al, al
mov edi, ecx
je 0x45ab85
inc ecx
push ecx
push esi
mov dword [esp + 0x4c], ecx
call fcn.0044b430
mov ecx, dword [esp + 0x4c]
add esp, 8
cmp eax, ecx
je 0x45ab5f
mov eax, dword [0x50aac8]
xor edx, edx
div dword [esi + 0x20]
inc eax
cmp ecx, eax
je 0x45ab5f
push 0
push ecx
lea ecx, [esp + 0x4c]
lea edx, [esp + 0x18]
push ecx
push edx
push esi
call fcn.0044c640
mov dword [esp + 0x28], eax
mov cl, byte [esi + 0x11]
add esp, 0x14
test cl, cl
je 0x45abe4
test eax, eax
jne 0x45accc
mov edx, dword [esp + 0x44]
lea eax, [esp + 0x14]
test edi, edi
setne cl
push eax
add ecx, 3
push edi
push ecx
push edx
push esi
call fcn.0044bb10
mov eax, dword [esp + 0x28]
add esp, 0x14
test eax, eax
je 0x45abec
mov eax, dword [esp + 0x10]
push eax
call fcn.0044b1b0
mov eax, dword [esp + 0x18]
add esp, 4
test eax, eax
jne 0x45accc
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x64]
push ecx
push edx
call fcn.00446560
mov eax, dword [esp + 0x20]
push eax
call fcn.0044b1b0
mov eax, dword [esp + 0x1c]
push 0
mov dword [esp + 0x28], eax
mov eax, dword [eax + 0x38]
push eax
mov dword [esp + 0x78], eax
call fcn.00446560
mov ecx, dword [esp + 0x24]
mov ebp, dword [esi + 0x24]
mov edx, dword [esp + 0x5c]
add esp, 0x14
mov ebx, dword [ecx + 0x38]
mov ecx, dword [esp + 0x60]
add ebx, 4
sub ebp, 4
cmp edx, ebp
jle 0x45ac3d
mov edx, ebp
test ecx, ecx
jle 0x45ac5f
cmp edx, ecx
jle 0x45ac47
mov edx, ecx
mov esi, dword [esp + 0x4c]
mov ecx, edx
mov eax, ecx
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x45ac73
mov ecx, edx
xor eax, eax
mov esi, ecx
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, esi
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x4c]
mov esi, dword [esp + 0x48]
add eax, edx
sub esi, edx
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x60]
sub eax, edx
add ebx, edx
sub ebp, edx
mov dword [esp + 0x48], esi
test eax, eax
mov dword [esp + 0x60], eax
jne 0x45aca9
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x58]
mov dword [esp + 0x60], ecx
mov dword [esp + 0x4c], edx
mov eax, dword [esp + 0x48]
test eax, eax
jg 0x45ab3e
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0044b1b0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret
mov eax, dword [esp + 0x18]
push eax
call fcn.0044b1b0
mov eax, dword [esp + 0x18]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret
push 0xd1da
call fcn.0048cc70
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret