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

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0xd0
push ebx
push ebp
xor ebp, ebp
push esi
mov dword [eax], ebp
mov esi, dword [0x902a3c]
push edi
cmp esi, ebp
je 0x4512c8
push 0x7c
lea ecx, [esp + 0x64]
push ebp
push ecx
call fcn.00487bc0
add esp, 0xc
lea eax, [esp + 0x60]
mov dword [esp + 0x60], 0x7c
mov dword [esp + 0x64], 6
mov edx, dword [esi]
mov ecx, dword [edx + 0x58]
push eax
push esi
call ecx
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x28], eax
fild dword [esp + 0x28]
mov dword [esp + 0x50], ebp
mov dword [esp + 0x54], ebp
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x40], ebp
mov dword [esp + 0x44], ebp
test eax, eax
jge 0x4511ef
fadd qword [0x4d68c8]
fld qword [0x4d69e8]
fnstcw word [esp + 0x14]
movzx eax, word [esp + 0x14]
fmul st(1), st(0)
or eax, 0xc00
fxch st(1)
mov dword [esp + 0x1c], eax
fldcw word [esp + 0x1c]
fistp qword [esp + 0x28]
mov esi, dword [esp + 0x28]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x48], esi
fldcw word [esp + 0x14]
fild dword [esp + 0x28]
test ecx, ecx
jge 0x451231
fadd qword [0x4d68c8]
fnstcw word [esp + 0x14]
push ebp
movzx eax, word [esp + 0x18]
fmulp st(1)
or eax, 0xc00
mov dword [esp + 0x20], eax
mov eax, dword [0x902a28]
lea ecx, [esp + 0x1c]
fldcw word [esp + 0x20]
push ecx
lea ecx, [esp + 0x68]
mov dword [esp + 0x74], esi
push ecx
push eax
fistp qword [esp + 0x38]
mov edi, dword [esp + 0x38]
mov dword [esp + 0x78], edi
mov edx, dword [eax]
mov edx, dword [edx + 0x18]
fldcw word [esp + 0x24]
mov dword [esp + 0x5c], edi
call edx
test eax, eax
jne 0x4512c8
mov eax, dword [0x912390]
mov edx, dword [0x902a3c]
push ebp
push eax
mov eax, dword [esp + 0x20]
push ebp
push ebp
lea ecx, [esp + 0x50]
push ecx
push edx
push eax
lea eax, [esp + 0x6c]
call fcn.00452710
mov ebx, edi
imul ebx, esi
lea ecx, [ebx + ebx*2]
add esp, 0x1c
push ecx
call fcn.004836a3
add esp, 4
mov dword [esp + 0x24], eax
cmp eax, ebp
jne 0x4512d5
mov eax, dword [esp + 0x18]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xd0
ret
push 0x7c
lea ecx, [esp + 0x64]
push ebp
push ecx
call fcn.00487bc0
mov eax, dword [esp + 0x24]
add esp, 0xc
push ebp
push ebp
lea ecx, [esp + 0x68]
push ecx
mov dword [esp + 0x6c], 0x7c
mov edx, dword [eax]
mov edx, dword [edx + 0x64]
push ebp
push eax
call edx
test eax, eax
je 0x45132b
mov eax, dword [esp + 0x24]
push eax
call fcn.004835c6
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
add esp, 4
push eax
call edx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xd0
ret
mov ebp, dword [esp + 0x84]
mov ecx, ebx
lea eax, [ebx + ebx]
mov dword [esp + 0x20], ebp
mov dword [esp + 0x14], 0
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], eax
test edi, edi
jle 0x4514a7
mov al, byte [esp + 0x14]
mov dl, byte [esp + 0x14]
mov bl, byte [esp + 0x14]
mov dword [esp + 0x1c], edi
xor edi, edi
test esi, esi
jle 0x45148a
mov esi, dword [esp + 0x24]
inc ebp
mov dword [esp + 0x3c], ebp
mov ebp, dword [esp + 0x14]
sub ebp, ecx
mov dword [esp + 0x38], ebp
mov ebp, dword [esp + 0x34]
sub ebp, ecx
add esi, ecx
mov ecx, dword [esp + 0x14]
add ebp, ecx
mov dword [esp + 0x28], ebp
mov ebp, dword [esp + 0x3c]
jmp 0x4513a0
mov ecx, dword [0x904a44]
cmp ecx, 0x10
je 0x45140b
cmp ecx, 0x18
je 0x4513c2
cmp ecx, 0x20
jne 0x45145f
mov edx, dword [esp + 0x20]
mov ebx, dword [edx + edi*4]
jmp 0x4513d8
movzx ebx, byte [ebp + 1]
movzx eax, byte [ebp]
movzx ecx, byte [ebp - 1]
shl ebx, 8
or ebx, eax
shl ebx, 8
or ebx, ecx
movzx ecx, byte [0x902a26]
mov eax, ebx
and eax, dword [0x902a10]
mov edx, ebx
and edx, dword [0x902a14]
and ebx, dword [0x902a18]
shr eax, cl
movzx ecx, byte [0x902a25]
shr edx, cl
movzx ecx, byte [0x902a24]
shr ebx, cl
jmp 0x45145f
mov edx, dword [esp + 0x20]
movzx ebx, word [edx + edi*2]
movzx ecx, byte [0x902a26]
mov eax, ebx
and eax, dword [0x902a10]
mov edx, ebx
and edx, dword [0x902a14]
and ebx, dword [0x902a18]
shr eax, cl
movzx ecx, byte [0x902a22]
shl al, cl
movzx ecx, byte [0x902a25]
shr edx, cl
movzx ecx, byte [0x902a21]
shl dl, cl
movzx ecx, byte [0x902a24]
shr ebx, cl
movzx ecx, byte [0x902a20]
shl bl, cl
mov ecx, dword [esp + 0x38]
mov byte [ecx + esi], bl
mov ecx, dword [esp + 0x28]
mov byte [esi], dl
mov byte [ecx + esi], al
inc edi
add ebp, 3
inc esi
cmp edi, dword [esp + 0x48]
jl 0x4513a0
mov ecx, dword [esp + 0x30]
mov ebp, dword [esp + 0x20]
mov esi, dword [esp + 0x48]
add ebp, dword [esp + 0x70]
add dword [esp + 0x14], esi
add ecx, esi
sub dword [esp + 0x1c], 1
mov dword [esp + 0x30], ecx
mov dword [esp + 0x20], ebp
jne 0x451363
mov eax, dword [esp + 0x18]
mov edx, dword [eax]
push 0
push eax
mov eax, dword [edx + 0x80]
call eax
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0xe4]
pop edi
pop esi
pop ebp
mov dword [ecx], eax
mov eax, 1
pop ebx
add esp, 0xd0
ret