Function at 0x418ae0
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
push esi
xor esi, esi
xor al, al
push edi
mov byte [esp + 0x13], al
mov dword [esp + 0x5c], esi
mov dword [esp + 0x58], esi
mov dword [esp + 0x54], esi
mov dword [esp + 0x68], esi
cmp dword [esp + 0x78], esi
je 0x418e22
mov edx, dword [esp + 0x84]
mov ebp, dword [esp + 0x80]
dec edx
xor ecx, ecx
cmp edx, 0xffffffff
setg cl
mov dword [esp + 0x14], edx
cmp ecx, esi
je 0x418df8
xor ecx, ecx
cmp ebp, esi
jle 0x418ded
mov edi, ebp
imul edi, edx
add edi, dword [esp + 0x70]
mov bl, byte [esp + 0x74]
cmp byte [edi + ecx], bl
jne 0x418b70
inc esi
test al, al
je 0x418b66
cmp esi, ebp
je 0x418b7f
inc ecx
cmp ecx, ebp
jl 0x418b54
dec edx
xor esi, esi
jmp 0x418b2d
test al, al
jne 0x418b62
mov dword [esp + 0x34], edx
dec edx
mov al, 1
xor esi, esi
jmp 0x418b2d
mov esi, dword [esp + 0x34]
mov eax, dword [esp + 0x58]
sub esi, edx
mov ebx, esi
imul ebx, ebp
mov dword [esp + 0x38], esi
test eax, eax
je 0x418ba6
mov ecx, dword [esp + 0x54]
push ecx
push 0
push eax
call fcn.004d2f90
add esp, 0xc
test ebx, ebx
je 0x418dfd
cmp ebx, 0xffffffff
jae 0x418dfd
mov edi, dword [esp + 0x58]
lea edx, [ebx + ebx]
push edx
push edi
mov dword [esp + 0x5c], ebx
call fcn.004caea7
mov ebp, eax
xor ecx, ecx
add esp, 8
cmp ebp, ecx
je 0x418df5
push esi
xor eax, eax
mov word [ebp], ax
mov ebx, dword [esp + 0x84]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x88]
push ebx
inc eax
push eax
mov eax, dword [esp + 0x7c]
push ecx
push edx
push ebx
push ecx
push ecx
push eax
push ebp
mov dword [esp + 0x80], ebp
mov dword [esp + 0x84], ecx
mov dword [esp + 0x74], ebx
call fcn.004191c0
push esi
push ebx
mov bl, byte [esp + 0xa4]
push ebp
lea ecx, [esp + 0x4c]
push ecx
lea edx, [esp + 0x60]
push edx
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0x70]
push ecx
call fcn.004192c0
mov eax, dword [esp + 0xc0]
mov ebx, dword [esp + 0x6c]
xor edi, edi
add esp, 0x44
cmp eax, edi
je 0x418c7f
mov ecx, dword [eax]
cmp ecx, edi
je 0x418c5b
cmp ebx, ecx
jl 0x418de0
mov eax, dword [eax + 4]
cmp eax, edi
je 0x418c7f
mov esi, dword [esp + 0x18]
cmp esi, eax
jge 0x418c83
mov edx, dword [esp + 0x14]
mov ebp, dword [esp + 0x80]
xor al, al
dec edx
xor esi, esi
jmp 0x418b2d
mov esi, dword [esp + 0x18]
lea eax, [ebx + 2]
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], eax
cmp ebx, eax
jge 0x418cc3
fild dword [esp + 0x24]
mov dword [esp + 0x1c], eax
fld qword [0x50f848]
fmul st(1), st(0)
fild dword [esp + 0x28]
fmul st(1)
fsubp st(2)
fxch st(1)
call fcn.004d8ac0
mov dword [esp + 0x3c], eax
jmp 0x418cc9
fld qword [0x50f848]
lea eax, [esi + 2]
mov dword [esp + 0x24], eax
cmp esi, eax
jge 0x418cf1
fild dword [esp + 0x24]
mov dword [esp + 0x20], eax
fmul st(1)
fild dword [esp + 0x18]
fmulp st(2)
fsubrp st(1)
call fcn.004d8ac0
mov dword [esp + 0x40], eax
jmp 0x418cf3
fstp st(0)
push 0x14
call fcn.004cb48c
add esp, 4
cmp eax, edi
je 0x418dfd
mov esi, dword [esp + 0x78]
xor edx, edx
mov dword [eax + 8], edx
mov dword [eax + 4], edx
mov dword [eax], edx
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], edx
mov ecx, dword [esi + 4]
inc dword [esi + 8]
cmp ecx, edx
je 0x418d26
mov dword [ecx + 0x10], eax
mov dword [esi + 4], eax
cmp dword [esi], edx
jne 0x418d2f
mov dword [esi], eax
mov ecx, dword [esp + 0x20]
imul ecx, dword [esp + 0x1c]
lea edi, [ecx + 0x28]
mov esi, eax
mov dword [esp + 0x24], ecx
call fcn.00414050
test eax, eax
je 0x418dfd
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x2c]
mov edi, dword [esp + 0x18]
lea ecx, [ecx + edx + 1]
mov edx, dword [esp + 0x30]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x1c]
mov dword [eax], edx
mov edx, dword [esp + 0x20]
mov dword [eax + 0x10], 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 + 0x1c], edx
mov dword [eax + 0x20], ebx
mov dword [eax + 0x24], edi
mov eax, dword [esp + 0x24]
push eax
push ecx
push esi
call fcn.004d2f90
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x2c]
add esp, 0xc
push edi
push ebx
push ecx
mov dword [esp + 0x50], edx
mov edx, dword [esp + 0x3c]
push edx
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x48]
push eax
mov eax, dword [esp + 0x60]
push eax
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x58]
push ecx
push ebp
push esi
call fcn.004191c0
add esp, 0x28
mov ebp, dword [esp + 0x80]
mov edx, dword [esp + 0x14]
xor al, al
dec edx
xor esi, esi
jmp 0x418b2d
push edi
jmp 0x418e16
mov byte [esp + 0x13], 1
mov esi, dword [esp + 0x58]
test esi, esi
je 0x418e1e
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