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

Disassembly:
push 0xffffffffffffffff
push 0x4cc528
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 0x418990
xor ebp, ebp
mov dword [esp + 0x1c], ebp
cmp dword [esp + 0x80], ecx
jle 0x418966
mov edx, dword [esp + 0x84]
jmp 0x418690
xor edi, edi
cmp edx, ecx
jle 0x41894e
mov esi, dword [esp + 0x70]
add esi, ebp
mov bl, byte [esp + 0x74]
cmp byte [esi], bl
jne 0x4186c2
inc edi
test al, al
je 0x4186b1
cmp edi, edx
je 0x4186d1
add esi, dword [esp + 0x80]
inc ecx
cmp ecx, edx
jl 0x4186a0
jmp 0x41894e
test al, al
jne 0x4186ad
mov dword [esp + 0x28], ebp
mov al, 1
jmp 0x41894e
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 0x4186f8
mov eax, dword [esp + 0x54]
push eax
push 0
push ebx
call fcn.004c16a0
add esp, 0xc
test esi, esi
je 0x41896b
cmp esi, 0xffffffff
jae 0x41896b
lea ecx, [esi + esi]
push ecx
push ebx
mov dword [esp + 0x5c], esi
call fcn.004bb6d7
mov esi, eax
xor eax, eax
add esp, 8
mov dword [esp + 0x38], esi
cmp esi, eax
je 0x418963
mov byte [esi], al
mov ebx, dword [esp + 0x84]
mov edx, dword [esp + 0x80]
push ebx
push ebp
push eax
push edi
push ebx
push edx
push eax
push eax
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x90]
push eax
push esi
mov dword [esp + 0x80], esi
mov dword [esp + 0x78], ebx
call fcn.004189b0
push ebx
mov bl, byte [esp + 0xa0]
push ebp
push esi
lea ecx, [esp + 0x4c]
push ecx
lea edx, [esp + 0x5c]
push edx
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0x70]
push ecx
call fcn.00418ab0
mov eax, dword [esp + 0xc0]
mov ebx, dword [esp + 0x68]
xor edx, edx
add esp, 0x44
cmp eax, edx
je 0x4187b8
mov ecx, dword [eax]
cmp ecx, edx
je 0x4187a4
cmp ebx, ecx
jl 0x418941
mov eax, dword [eax + 4]
cmp eax, edx
je 0x4187b8
mov esi, dword [esp + 0x18]
cmp esi, eax
jge 0x4187bc
jmp 0x418941
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 0x4187f8
fild dword [esp + 0x20]
mov ebp, eax
fld qword [0x4e58b0]
fmul st(1), st(0)
fild dword [esp + 0x24]
fmul st(1)
fsubp st(2)
fxch st(1)
call fcn.004c9200
mov dword [esp + 0x3c], eax
jmp 0x4187fe
fld qword [0x4e58b0]
lea eax, [esi + 6]
mov dword [esp + 0x20], eax
cmp esi, eax
jge 0x418828
fild dword [esp + 0x20]
mov dword [esp + 0x14], eax
fmul st(1)
fild dword [esp + 0x18]
fmul st(2)
fsubp st(1)
call fcn.004c9200
mov esi, dword [esp + 0x14]
mov dword [esp + 0x40], eax
cmp ebp, esi
je 0x418860
jl 0x418834
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.004c9200
fild dword [esp + 0x18]
mov dword [esp + 0x3c], eax
fmulp st(2)
fsubrp st(1)
call fcn.004c9200
mov dword [esp + 0x40], eax
jmp 0x418862
fstp st(0)
push 0x14
call fcn.004bbddb
add esp, 4
test eax, eax
je 0x41896b
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 0x418895
mov dword [edx + 0x10], eax
mov dword [ecx + 4], eax
cmp dword [ecx], edi
jne 0x41889e
mov dword [ecx], eax
imul esi, ebp
lea edi, [esi + 0x28]
mov dword [esp + 0x20], esi
mov esi, eax
call fcn.00413990
test eax, eax
je 0x41896b
mov ecx, dword [esp + 0x30]
add ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov edi, dword [esp + 0x18]
mov dword [eax], ecx
mov ecx, dword [esp + 0x14]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x3c]
mov dword [eax + 0x14], ecx
mov ecx, dword [esp + 0x40]
mov dword [eax + 0x18], edx
mov edx, dword [esp + 0x20]
lea esi, [eax + 0x28]
mov dword [eax + 8], ebx
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], ebp
mov dword [eax + 0x1c], ecx
mov dword [eax + 0x20], ebx
mov dword [eax + 0x24], edi
movzx eax, byte [esp + 0x74]
push edx
push eax
push esi
call fcn.004c16a0
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x20]
add esp, 0xc
push edi
push ebx
push edx
push eax
mov eax, dword [esp + 0x60]
push eax
mov eax, dword [esp + 0x48]
push eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x60], ecx
lea ecx, [esp + 0x5c]
push ecx
lea edx, [esp + 0x58]
push edx
push eax
push esi
mov dword [esp + 0x6c], ebp
call fcn.004189b0
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 0x418966
xor ecx, ecx
jmp 0x418690
push ebx
jmp 0x418984
mov byte [esp + 0x13], 1
mov esi, dword [esp + 0x58]
test esi, esi
je 0x41898c
mov ecx, dword [esp + 0x54]
push ecx
push 0
push esi
call fcn.004c16a0
add esp, 0xc
push esi
call fcn.004ba14c
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