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

Disassembly:
push 0xffffffffffffffff
push 0x47d08b
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push ebx
push ebp
push esi
push edi
mov eax, dword [0x49a6f0]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov si, cx
mov ebp, dword [esp + 0x90]
test si, si
mov dword [esp + 0x1c], 0
je 0x452852
movzx ebx, word [esp + 0x8c]
mov eax, dword [esp + 0x88]
mov ecx, dword [eax]
push ebx
push ebp
mov dword [esp + 0x2c], ecx
call fcn.0043f250
mov edx, eax
movzx ecx, si
mov eax, ebx
sub eax, edx
imul eax, ecx
xor edx, edx
div ebx
mov eax, dword [ebp + 8]
test eax, eax
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x20], edx
je 0x45265f
lea ecx, [ecx + eax*4 - 4]
cmp dword [ecx], 0
jne 0x45265f
sub eax, 1
sub ecx, 4
test eax, eax
jne 0x452650
mov edi, 1
cmp eax, edi
ja 0x4526ec
push ebx
lea esi, [esp + 0x40]
call fcn.0043ca60
mov edx, dword [esp + 0x20]
mov dword [esp + 0x80], 0
push edx
lea esi, [esp + 0x2c]
mov dword [esp + 0x20], edi
call fcn.0043ca60
mov eax, dword [esp + 0x94]
mov dword [esp + 0x80], edi
mov edi, esi
lea esi, [esp + 0x64]
mov dword [esp + 0x1c], 3
call fcn.0042add0
mov dword [esp + 0x80], 2
mov edi, ebp
lea esi, [esp + 0x50]
mov dword [esp + 0x1c], 7
call fcn.0042ad90
lea edx, [esp + 0x3c]
mov dword [esp + 0x1c], 0xf
call fcn.0042ac50
test al, al
mov byte [esp + 0x1b], 1
jne 0x4526f1
mov byte [esp + 0x1b], 0
test byte [esp + 0x1c], 8
je 0x452729
mov ecx, dword [esp + 0x58]
mov edi, dword [esp + 0x5c]
and dword [esp + 0x1c], 0xfffffff7
xor eax, eax
mov edx, ecx
mov esi, edi
rep stosd dword es:[edi], eax
lea eax, [edx*4]
cmp eax, 0x10
push esi
jb 0x452721
call fcn.004764ed
jmp 0x452726
call fcn.0045bd1b
add esp, 4
test byte [esp + 0x1c], 4
je 0x452761
mov ecx, dword [esp + 0x6c]
mov edi, dword [esp + 0x70]
and dword [esp + 0x1c], 0xfffffffb
xor eax, eax
mov edx, ecx
mov esi, edi
rep stosd dword es:[edi], eax
lea ecx, [edx*4]
cmp ecx, 0x10
push esi
jb 0x452759
call fcn.004764ed
jmp 0x45275e
call fcn.0045bd1b
add esp, 4
test byte [esp + 0x1c], 2
je 0x452796
mov edx, dword [esp + 0x30]
mov esi, dword [esp + 0x34]
and dword [esp + 0x1c], 0xfffffffd
mov ecx, edx
add edx, edx
xor eax, eax
add edx, edx
cmp edx, 0x10
mov edi, esi
rep stosd dword es:[edi], eax
push esi
jb 0x45278e
call fcn.004764ed
jmp 0x452793
call fcn.0045bd1b
add esp, 4
test byte [esp + 0x1c], 1
je 0x4527c9
mov esi, dword [esp + 0x48]
mov edx, dword [esp + 0x44]
xor eax, eax
mov edi, esi
mov ecx, edx
rep stosd dword es:[edi], eax
lea eax, [edx*4]
cmp eax, 0x10
push esi
jb 0x4527c1
call fcn.004764ed
jmp 0x4527c6
call fcn.0045bd1b
add esp, 4
cmp byte [esp + 0x1b], 0
je 0x4527d4
add dword [esp + 0x20], ebx
mov ecx, dword [esp + 0x20]
cmp ecx, dword [esp + 0x24]
jae 0x452852
mov edx, dword [esp + 0x20]
push edx
lea eax, [esp + 0x2c]
push eax
mov eax, dword [esp + 0x90]
call fcn.00453eb0
mov esi, eax
cmp dword [esi], 0
je 0x452801
cmp dword [esi + 4], 0
jne 0x452806
call fcn.0045b257
mov eax, dword [esi]
mov edi, dword [eax + 8]
mov ebp, dword [esi + 8]
add eax, 4
cmp edi, dword [eax + 8]
jbe 0x45281b
call fcn.0045b257
mov ecx, dword [esi + 4]
mov edx, dword [esi]
sub ecx, edi
sar ecx, 2
shl ecx, 5
add ecx, ebp
cmp ecx, dword [edx]
jb 0x452833
call fcn.0045b257
mov ecx, dword [esi + 8]
mov eax, dword [esi + 4]
mov edx, 1
shl edx, cl
or dword [eax], edx
mov eax, dword [esp + 0x20]
add eax, ebx
cmp eax, dword [esp + 0x24]
mov dword [esp + 0x20], eax
jb 0x4527de
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x70
ret