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

Disassembly:
push 0xffffffffffffffff
push 0x4dbde8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x50
push ebx
push ebp
xor ecx, ecx
push esi
xor al, al
push edi
mov byte [esp + 0x13], al
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x58], ecx
mov dword [esp + 0x54], ecx
mov dword [esp + 0x68], ecx
cmp dword [esp + 0x78], ecx
je 0x4191a0
xor ebp, ebp
mov dword [esp + 0x1c], ebp
cmp dword [esp + 0x80], ecx
jle 0x419176
mov edx, dword [esp + 0x84]
jmp 0x418ea0
xor edi, edi
cmp edx, ecx
jle 0x41915e
mov esi, dword [esp + 0x70]
add esi, ebp
mov bl, byte [esp + 0x74]
cmp byte [esi], bl
jne 0x418ed2
inc edi
test al, al
je 0x418ec1
cmp edi, edx
je 0x418ee1
add esi, dword [esp + 0x80]
inc ecx
cmp ecx, edx
jl 0x418eb0
jmp 0x41915e
test al, al
jne 0x418ebd
mov dword [esp + 0x28], ebp
mov al, 1
jmp 0x41915e
mov edi, dword [esp + 0x28]
mov ebx, dword [esp + 0x58]
sub ebp, edi
mov esi, ebp
imul esi, edx
mov dword [esp + 0x34], ebp
test ebx, ebx
je 0x418f08
mov eax, dword [esp + 0x54]
push eax
push 0
push ebx
call fcn.004d2f90
add esp, 0xc
test esi, esi
je 0x41917b
cmp esi, 0xffffffff
jae 0x41917b
lea ecx, [esi + esi]
push ecx
push ebx
mov dword [esp + 0x5c], esi
call fcn.004caea7
mov esi, eax
xor eax, eax
add esp, 8
mov dword [esp + 0x38], esi
cmp esi, eax
je 0x419173
mov ecx, dword [esp + 0x70]
xor edx, edx
mov word [esi], dx
mov ebx, dword [esp + 0x84]
push ebx
push ebp
push eax
push edi
push ebx
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x94]
push eax
push edx
push edx
push ecx
push esi
mov dword [esp + 0x80], esi
mov dword [esp + 0x78], ebx
call fcn.004191c0
push ebx
mov bl, byte [esp + 0xa0]
push ebp
push esi
lea edx, [esp + 0x4c]
push edx
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x68]
push ecx
lea edx, [esp + 0x70]
push edx
call fcn.004192c0
mov eax, dword [esp + 0xc0]
mov ebx, dword [esp + 0x68]
xor edx, edx
add esp, 0x44
cmp eax, edx
je 0x418fc8
mov ecx, dword [eax]
cmp ecx, edx
je 0x418fb4
cmp ebx, ecx
jl 0x419151
mov eax, dword [eax + 4]
cmp eax, edx
je 0x418fc8
mov esi, dword [esp + 0x18]
cmp esi, eax
jge 0x418fcc
jmp 0x419151
mov esi, dword [esp + 0x18]
lea eax, [ebx + 6]
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], edx
mov ebp, ebx
mov dword [esp + 0x14], esi
mov dword [esp + 0x20], eax
cmp ebx, eax
jge 0x419008
fild dword [esp + 0x20]
mov ebp, eax
fld qword [0x50f848]
fmul st(1), st(0)
fild dword [esp + 0x24]
fmul st(1)
fsubp st(2)
fxch st(1)
call fcn.004d8ac0
mov dword [esp + 0x3c], eax
jmp 0x41900e
fld qword [0x50f848]
lea eax, [esi + 6]
mov dword [esp + 0x20], eax
cmp esi, eax
jge 0x419038
fild dword [esp + 0x20]
mov dword [esp + 0x14], eax
fmul st(1)
fild dword [esp + 0x18]
fmul st(2)
fsubp st(1)
call fcn.004d8ac0
mov esi, dword [esp + 0x14]
mov dword [esp + 0x40], eax
cmp ebp, esi
je 0x419070
jl 0x419044
mov dword [esp + 0x14], ebp
mov esi, ebp
fild dword [esp + 0x14]
mov ebp, esi
fmul st(1)
fild dword [esp + 0x24]
fmul st(2)
fsubr st(1)
call fcn.004d8ac0
fild dword [esp + 0x18]
mov dword [esp + 0x3c], eax
fmulp st(2)
fsubrp st(1)
call fcn.004d8ac0
mov dword [esp + 0x40], eax
jmp 0x419072
fstp st(0)
push 0x14
call fcn.004cb48c
add esp, 4
test eax, eax
je 0x41917b
mov ecx, dword [esp + 0x78]
xor edi, edi
mov dword [eax + 8], edi
mov dword [eax + 4], edi
mov dword [eax], edi
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], edi
mov edx, dword [ecx + 4]
inc dword [ecx + 8]
cmp edx, edi
je 0x4190a5
mov dword [edx + 0x10], eax
mov dword [ecx + 4], eax
cmp dword [ecx], edi
jne 0x4190ae
mov dword [ecx], eax
imul esi, ebp
lea edi, [esi + 0x28]
mov dword [esp + 0x20], esi
mov esi, eax
call fcn.00414050
test eax, eax
je 0x41917b
mov edx, dword [esp + 0x30]
add edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov edi, dword [esp + 0x18]
mov dword [eax], edx
mov edx, dword [esp + 0x14]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x3c]
mov dword [eax + 0x14], edx
mov edx, dword [esp + 0x40]
mov dword [eax + 0x18], ecx
movzx ecx, byte [esp + 0x74]
lea esi, [eax + 0x28]
mov dword [eax + 8], ebx
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], ebp
mov dword [eax + 0x1c], edx
mov dword [eax + 0x20], ebx
mov dword [eax + 0x24], edi
mov eax, dword [esp + 0x20]
push eax
push ecx
push esi
call fcn.004d2f90
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x20]
add esp, 0xc
push edi
push ebx
push eax
mov eax, dword [esp + 0x5c]
push ecx
mov ecx, dword [esp + 0x48]
push eax
mov eax, dword [esp + 0x48]
push eax
mov dword [esp + 0x60], edx
lea edx, [esp + 0x5c]
push edx
lea eax, [esp + 0x58]
push eax
push ecx
push esi
mov dword [esp + 0x6c], ebp
call fcn.004191c0
add esp, 0x28
mov edx, dword [esp + 0x84]
mov ebp, dword [esp + 0x1c]
xor al, al
inc ebp
mov dword [esp + 0x1c], ebp
cmp ebp, dword [esp + 0x80]
jge 0x419176
xor ecx, ecx
jmp 0x418ea0
push ebx
jmp 0x419194
mov byte [esp + 0x13], 1
mov esi, dword [esp + 0x58]
test esi, esi
je 0x41919c
mov edx, dword [esp + 0x54]
push edx
push 0
push esi
call fcn.004d2f90
add esp, 0xc
push esi
call fcn.004ca991
add esp, 4
mov al, byte [esp + 0x13]
mov ecx, dword [esp + 0x60]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x5c
ret