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

Disassembly:
sub esp, 0x80
lea eax, [esp + 0x54]
push ebx
push ebp
mov ebp, dword [esp + 0x8c]
push esi
push edi
push ebp
push 1
push 0x28
push eax
call dword [ebp + 0x83c]
mov ecx, dword [esp + 0x76]
mov esi, dword [esp + 0xa8]
mov edx, dword [esp + 0x74]
mov eax, dword [esp + 0x75]
and ecx, 0xff
and edx, 0xff
mov dword [esi + 0x38], ecx
lea ecx, [esp + 0x78]
and eax, 0xff
mov edi, 0x100
push ecx
mov dword [esi], 0x1a
mov dword [esi + 0x28], edx
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
call fcn.004ecd00
lea edx, [esp + 0x80]
push edx
call fcn.004ecd00
lea eax, [esp + 0x88]
push eax
call fcn.004ecd00
lea ecx, [esp + 0x90]
push ecx
call fcn.004ecd00
lea edx, [esp + 0x98]
push edx
call fcn.004ecd00
lea eax, [esp + 0xa0]
push eax
call fcn.004ecd00
lea ecx, [esp + 0xa8]
push ecx
call fcn.004ecd00
lea edx, [esp + 0xb0]
push edx
call fcn.004ecd00
lea eax, [esp + 0xb8]
push eax
call fcn.004ecd00
mov ecx, dword [esp + 0x9c]
mov edx, dword [esp + 0xa0]
lea eax, [esi + 4]
mov dword [esi + 8], edx
mov edx, dword [esp + 0xa8]
push 0x3f1a36e2
mov dword [eax], ecx
mov ecx, dword [esp + 0xa8]
mov dword [esi + 0xc], ecx
mov ecx, dword [esp + 0xb0]
mov dword [esi + 0x10], edx
mov edx, dword [esp + 0xb4]
mov dword [esi + 0x14], ecx
mov ecx, dword [esp + 0xb8]
mov dword [esi + 0x18], edx
mov edx, dword [esp + 0xbc]
mov dword [esi + 0x1c], ecx
mov ecx, dword [esp + 0xc0]
push 0xeb1c432d
push eax
mov dword [esi + 0x20], edx
mov dword [esi + 0x24], ecx
call fcn.00524920
add esp, 0x40
test eax, eax
jne 0x4ece6a
mov eax, dword [esi]
or al, 1
mov dword [esi], eax
push edi
call fcn.00460c60
mov ecx, dword [esi + 0x28]
mov ebx, eax
xor eax, eax
add esp, 4
cmp ecx, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
jbe 0x4ecf01
lea edx, [esi + 0x3c]
mov dword [esp + 0x18], edx
push 0x200
call fcn.00460c60
mov edi, eax
mov eax, dword [esp + 0x1c]
push ebp
push 0x100
push 1
push ebx
mov dword [eax], edi
call dword [ebp + 0x83c]
add esp, 0x14
xor eax, eax
movzx cx, byte [eax + ebx]
xor edx, edx
add edi, 2
mov dh, cl
or edx, ecx
inc eax
mov word [edi - 2], dx
cmp eax, 0x100
jb 0x4eceb3
mov edi, dword [esp + 0x18]
mov eax, dword [esi + 0x30]
push eax
mov ecx, dword [edi]
push ecx
call fcn.00523920
mov edx, dword [esp + 0x18]
mov ecx, dword [esi + 0x28]
add edx, eax
mov eax, dword [esp + 0x1c]
add esp, 8
inc eax
add edi, 4
cmp eax, ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edi
jb 0x4ece8d
mov edx, dword [esp + 0x10]
mov eax, dword [esi + 0x28]
cmp edx, eax
jne 0x4ecf12
mov eax, dword [esi]
and al, 0xfd
mov dword [esi], eax
push ebx
call fcn.00460b77
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 0x38]
push eax
push ecx
call fcn.0051f930
mov edi, eax
xor eax, eax
imul edi, dword [esi + 0x2c]
add esp, 0xc
cmp edi, eax
mov dword [esp + 0x1c], edi
jbe 0x4ecf9a
lea eax, [edi + edi]
push eax
call fcn.00460c60
push edi
mov ebx, eax
call fcn.00460c60
push ebp
push edi
push 1
push eax
mov dword [esp + 0x30], eax
call dword [ebp + 0x83c]
lea eax, [edi + edi]
add esp, 0x18
mov dword [esi + 0xc0], eax
xor eax, eax
test edi, edi
mov dword [esi + 0xbc], ebx
jbe 0x4ecf8b
mov edx, dword [esp + 0x18]
add ebx, 2
movzx cx, byte [eax + edx]
xor edx, edx
mov dh, cl
or edx, ecx
inc eax
mov word [ebx - 2], dx
cmp eax, edi
jb 0x4ecf70
mov eax, dword [esp + 0x18]
push eax
call fcn.00460b77
add esp, 4
jmp 0x4ecfac
mov dword [esi + 0xbc], eax
mov dword [esi + 0xc0], eax
mov eax, dword [esi]
and al, 0xef
mov dword [esi], eax
push 0x100
call fcn.00460c60
mov ecx, dword [esi + 0x2c]
mov ebx, eax
xor eax, eax
add esp, 4
cmp ecx, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
jbe 0x4ed050
lea ecx, [esi + 0x7c]
mov dword [esp + 0x18], ecx
push 0x200
call fcn.00460c60
mov edx, dword [esp + 0x1c]
push ebp
push 0x100
mov edi, eax
push 1
push ebx
mov dword [edx], edi
call dword [ebp + 0x83c]
add esp, 0x14
xor eax, eax
movzx cx, byte [eax + ebx]
xor edx, edx
add edi, 2
mov dh, cl
or edx, ecx
inc eax
mov word [edi - 2], dx
cmp eax, 0x100
jb 0x4ecffd
mov edi, dword [esp + 0x18]
push 0x100
mov eax, dword [edi]
push eax
call fcn.00523920
mov edx, dword [esp + 0x18]
mov ecx, dword [esi + 0x2c]
add edx, eax
mov eax, dword [esp + 0x1c]
add esp, 8
inc eax
add edi, 4
cmp eax, ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edi
jb 0x4ecfd7
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
mov eax, dword [esi + 0x2c]
cmp ecx, eax
jne 0x4ed061
mov eax, dword [esi]
and al, 0xf7
mov dword [esi], eax
push ebx
call fcn.00460b77
mov eax, dword [esi + 0x30]
lea edx, [esi + 0xc4]
push edx
push eax
call fcn.00522390
mov edx, dword [esi + 0x34]
lea ecx, [esi + 0xfc]
push ecx
push edx
call fcn.00522390
mov ecx, dword [esi + 0x2c]
mov edx, dword [esi + 0x28]
lea eax, [esi + 0x134]
push eax
mov eax, dword [esi + 0x38]
push ecx
push edx
push eax
call fcn.005229d0
mov eax, dword [ebp + 0xc]
mov ebx, 0x4c616220
add esp, 0x24
cmp eax, ebx
jne 0x4ed1d8
mov eax, dword [ebp + 8]
push edi
cmp eax, ebx
jne 0x4ed0c5
push esi
call fcn.004ed2e0
add esp, 8
jmp 0x4ed0d6
mov ecx, dword [esp + 0xa0]
push ecx
push esi
call fcn.004ed1f0
add esp, 0xc
push 0
lea edx, [esp + 0x1c]
push 0
push edx
push ebx
call fcn.005212a0
mov edx, dword [ebp + 8]
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x24]
push 0
push ecx
push edx
call fcn.005212a0
add esp, 0x20
test eax, eax
je 0x4ed1d8
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x44]
push eax
push ecx
push esi
mov dword [esi + 0x2c8], 0
call fcn.0051fdb0
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x30]
push edx
push eax
push esi
mov dword [esi + 0x2c8], 1
call fcn.0051fdb0
mov eax, dword [esp + 0x34]
add esp, 0x18
fld qword [0x6331a8]
fld qword [0x6331a8]
test eax, eax
jle 0x4ed1aa
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x24]
lea edi, [esp + 0x44]
sub edx, ecx
sub edi, ecx
mov dword [esp + 0x14], eax
xor eax, eax
xor ebx, ebx
mov ax, word [ecx]
mov bx, word [edx + ecx]
mov ebp, eax
add ecx, 2
sub ebp, ebx
xor ebx, ebx
mov dword [esp + 0x20], ebp
mov bx, word [edi + ecx - 2]
fild dword [esp + 0x20]
sub eax, ebx
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x14]
fld st(0)
fmul st(1)
dec eax
mov dword [esp + 0x14], eax
faddp st(2)
fstp st(0)
fild dword [esp + 0x20]
fld st(0)
fmul st(1)
faddp st(3)
fstp st(0)
jne 0x4ed164
fsqrt
fxch st(1)
fsqrt
fcompp
fnstsw ax
test ah, 0x41
jne 0x4ed1ce
mov dword [esi + 0x2c8], 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80
ret
mov dword [esi + 0x2c8], 0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80
ret