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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x501ed6
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x54d894]
xor eax, esp
mov dword [esp + 0x240], eax
push ebx
push esi
push edi
mov eax, dword [0x54d894]
xor eax, esp
push eax
lea eax, [esp + 0x258]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebp + 8]
push 0x168
mov dword [esp + 0x18], eax
lea eax, [esp + 0x60]
push 0
push eax
call fcn.004dd100
and dword [esp + 0x6c], 0
lea eax, [esp + 0x68]
mov esi, dword [esp + 0x68]
mov edi, dword [esp + 0x74]
push 0x168
push 0
push eax
call fcn.004dd100
add esp, 0x18
mov dword [esp + 0x5c], esi
lea ecx, [esp + 0x5c]
mov dword [esp + 0x68], edi
mov byte [esp + 0x6c], 0
call fcn.0045bd2c
xor ecx, ecx
lea edi, [esp + 0xa4]
xor eax, eax
mov dword [esp + 0x64], ecx
mov dword [esp + 0x74], ecx
mov dword [esp + 0xa0], ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, ecx
mov dword [esp + eax*4 + 0xb4], ecx
mov dword [esp + eax*4 + 0xc4], ecx
inc eax
cmp eax, 4
jl 0x45e0f9
movsd xmm0, qword [0x52f198]
push 0x64
mov dword [esp + 0x1c0], ecx
lea ecx, [esp + 0x1c8]
pop eax
movsd qword [esp + 0x8c], xmm0
mov dword [esp + 0x70], eax
call fcn.0045dbe3
lea eax, [esp + 0x1c4]
mov edi, 0x200
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x40]
mov dword [esp + 0x74], eax
mov eax, dword [ebp + 0xc]
push edi
mov dword [esp + 0x58], eax
call fcn.004dc65c
mov esi, eax
pop ecx
mov dword [esp + 0x20], esi
and dword [esp + 0x260], 0
mov dword [esp + 0x44], edi
mov edi, dword [esp + 0x14]
mov dword [esp + 0x58], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x48], fcn.004022b0
mov ecx, dword [edi]
mov dword [esp + 0x4c], 0x45dc58
mov dword [esp + 0x50], 0x45dc37
test ecx, ecx
jne 0x45e1a0
and dword [esp + 0x78], ecx
jmp 0x45e1a7
mov eax, dword [ecx + 0xc]
mov dword [esp + 0x78], eax
test ecx, ecx
jne 0x45e1b1
and dword [esp + 0x7c], ecx
jmp 0x45e1b8
mov eax, dword [ecx + 0x10]
mov dword [esp + 0x7c], eax
push 0x48
pop eax
lea ecx, [esp + 0x5c]
mov dword [esp + 0x80], 3
mov dword [esp + 0x84], 2
mov byte [esp + 0x120], 1
mov word [esp + 0x124], ax
mov word [esp + 0x126], ax
call fcn.004513e7
xorps xmm0, xmm0
mov dword [esp + 0x114], 2
comiss xmm0, dword [ebx + 4]
mov byte [esp + 0x10e], 1
jbe 0x45e215
mov dword [ebx + 4], 0x3f59999a
movss xmm0, dword [ebx + 4]
mulss xmm0, dword [0x52f368]
push ecx
push 0x64
pop ebx
cvtps2pd xmm0, xmm0
addsd xmm0, qword [0x52f378]
movsd qword [esp + 0x18], xmm0
mov eax, dword [esp + 0x18]
cmp eax, ebx
mov edx, eax
cmovg edx, ebx
xor ecx, ecx
test eax, eax
cmovs edx, ecx
lea ecx, [esp + 0x60]
call fcn.00451316
pop ecx
cmp dword [esp + 0x70], ebx
je 0x45e27b
mov eax, dword [esp + 0x5c]
mov dword [eax + 0x14], 0x14
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x70]
mov dword [ecx + 0x18], eax
lea eax, [esp + 0x5c]
push eax
mov eax, dword [esp + 0x60]
call dword [eax]
pop ecx
lea ecx, [esp + 0x5c]
call fcn.0044dc68
lea eax, [esp + 0x5c]
push eax
mov eax, dword [esp + 0x60]
call dword [eax + 0x10]
lea eax, [esp + 0x60]
push eax
mov eax, dword [esp + 0x7c]
call dword [eax + 8]
lea ecx, [esp + 0x64]
call fcn.0044fd30
lea eax, [esp + 0x64]
push eax
mov eax, dword [esp + 0x1a4]
call dword [eax]
and dword [esp + 0x138], 0
xor eax, eax
cmp byte [esp + 0x118], al
push 1
setne al
add eax, 0x65
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x90]
imul eax, dword [esp + 0x88]
push eax
lea eax, [esp + 0x70]
push 1
push eax
mov eax, dword [esp + 0x7c]
call dword [eax + 8]
add esp, 0x1c
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x24]
push 0
push edi
call fcn.0044cb9b
mov byte [esp + 0x260], 1
mov edx, dword [esp + 0x12c]
cmp edx, dword [esp + 0x7c]
jae 0x45e374
mov esi, dword [esp + 0x14]
cmp dword [esp + 0x28], 1
mov edi, dword [esi]
jne 0x45e3dd
mov ecx, dword [esp + 0x2c]
imul ecx, edx
mov edx, dword [esp + 0x34]
add ecx, dword [esp + 0x24]
dec edx
js 0x45e356
mov al, byte [ecx + 2]
mov byte [edi], al
lea edi, [edi + 3]
mov al, byte [ecx + 1]
mov byte [edi - 2], al
mov al, byte [ecx]
mov byte [edi - 1], al
add ecx, dword [esp + 0x30]
dec edx
jns 0x45e33c
push ecx
mov edx, esi
lea ecx, [esp + 0x60]
call fcn.0044dd94
mov edx, dword [esp + 0x130]
pop ecx
cmp edx, dword [esp + 0x7c]
jb 0x45e31d
mov esi, dword [esp + 0x20]
lea ecx, [esp + 0x5c]
call fcn.0044dcad
mov eax, dword [esp + 0x60]
test eax, eax
je 0x45e38e
lea ecx, [esp + 0x5c]
push ecx
call dword [eax + 0x28]
pop ecx
and dword [esp + 0x60], 0
and dword [esp + 0x70], 0
mov byte [esp + 0x260], 0
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x45e3ae
mov edx, dword [ecx]
push 1
call dword [edx]
push esi
call fcn.004dc624
pop ecx
mov al, 1
mov ecx, dword [esp + 0x258]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x240]
xor ecx, esp
call fcn.004db457
mov esp, ebp
pop ebp
ret 8
xor ebx, ebx
cmp dword [esp + 0x34], ebx
jle 0x45e356
push edx
push ebx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x30]
call fcn.0044cbfc
mov al, byte [esp + 0x16]
inc ebx
mov byte [edi], al
lea edi, [edi + 3]
mov eax, dword [esp + 0x14]
mov byte [edi - 2], ah
mov byte [edi - 1], al
cmp ebx, dword [esp + 0x34]
jge 0x45e356
mov edx, dword [esp + 0x12c]
jmp 0x45e3e9