Function at 0x4182d0
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
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 0x41860f
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 0x4185e5
xor ecx, ecx
cmp ebp, esi
jle 0x4185da
mov edi, ebp
imul edi, edx
add edi, dword [esp + 0x70]
mov bl, byte [esp + 0x74]
cmp byte [edi + ecx], bl
jne 0x418360
inc esi
test al, al
je 0x418356
cmp esi, ebp
je 0x41836f
inc ecx
cmp ecx, ebp
jl 0x418344
dec edx
xor esi, esi
jmp 0x41831d
test al, al
jne 0x418352
mov dword [esp + 0x34], edx
dec edx
mov al, 1
xor esi, esi
jmp 0x41831d
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 0x418396
mov ecx, dword [esp + 0x54]
push ecx
push 0
push eax
call fcn.004c16a0
add esp, 0xc
test ebx, ebx
je 0x4185ea
cmp ebx, 0xffffffff
jae 0x4185ea
mov edi, dword [esp + 0x58]
lea edx, [ebx + ebx]
push edx
push edi
mov dword [esp + 0x5c], ebx
call fcn.004bb6d7
mov ebp, eax
xor ecx, ecx
add esp, 8
cmp ebp, ecx
je 0x4185e2
mov eax, dword [esp + 0x14]
push esi
mov byte [ebp], cl
mov ebx, dword [esp + 0x84]
push ebx
inc eax
push eax
mov eax, dword [esp + 0x90]
push ecx
push eax
push ebx
push ecx
push ecx
mov dword [esp + 0x7c], ecx
mov ecx, dword [esp + 0x90]
push ecx
push ebp
mov dword [esp + 0x80], ebp
mov dword [esp + 0x74], ebx
call fcn.004189b0
push esi
push ebx
mov bl, byte [esp + 0xa4]
push ebp
lea edx, [esp + 0x4c]
push edx
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x68]
push ecx
lea edx, [esp + 0x70]
push edx
call fcn.00418ab0
mov eax, dword [esp + 0xc0]
mov ebx, dword [esp + 0x6c]
xor edi, edi
add esp, 0x44
cmp eax, edi
je 0x41846c
mov ecx, dword [eax]
cmp ecx, edi
je 0x418448
cmp ebx, ecx
jl 0x4185cd
mov eax, dword [eax + 4]
cmp eax, edi
je 0x41846c
mov esi, dword [esp + 0x18]
cmp esi, eax
jge 0x418470
mov edx, dword [esp + 0x14]
mov ebp, dword [esp + 0x80]
xor al, al
dec edx
xor esi, esi
jmp 0x41831d
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 0x4184b0
fild dword [esp + 0x24]
mov dword [esp + 0x1c], eax
fld qword [0x4e58b0]
fmul st(1), st(0)
fild dword [esp + 0x28]
fmul st(1)
fsubp st(2)
fxch st(1)
call fcn.004c9200
mov dword [esp + 0x3c], eax
jmp 0x4184b6
fld qword [0x4e58b0]
lea eax, [esi + 2]
mov dword [esp + 0x24], eax
cmp esi, eax
jge 0x4184de
fild dword [esp + 0x24]
mov dword [esp + 0x20], eax
fmul st(1)
fild dword [esp + 0x18]
fmulp st(2)
fsubrp st(1)
call fcn.004c9200
mov dword [esp + 0x40], eax
jmp 0x4184e0
fstp st(0)
push 0x14
call fcn.004bbddb
add esp, 4
cmp eax, edi
je 0x4185ea
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 0x418513
mov dword [ecx + 0x10], eax
mov dword [esi + 4], eax
cmp dword [esi], edx
jne 0x41851c
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.00413990
test eax, eax
je 0x4185ea
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
lea ecx, [edx + ecx + 1]
mov edx, dword [esp + 0x1c]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x30]
mov dword [eax], ecx
mov ecx, dword [esp + 0x20]
mov dword [eax + 0x10], 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 + 0x24]
lea esi, [eax + 0x28]
mov dword [eax + 8], ebx
mov dword [eax + 0xc], edi
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 ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x2c]
add esp, 0xc
push edi
push ebx
push eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + 0x3c]
push ecx
push eax
mov eax, dword [esp + 0x60]
push eax
mov dword [esp + 0x60], edx
lea edx, [esp + 0x5c]
push edx
lea eax, [esp + 0x58]
push eax
push ebp
push esi
call fcn.004189b0
add esp, 0x28
mov ebp, dword [esp + 0x80]
mov edx, dword [esp + 0x14]
xor al, al
dec edx
xor esi, esi
jmp 0x41831d
push edi
jmp 0x418603
mov byte [esp + 0x13], 1
mov esi, dword [esp + 0x58]
test esi, esi
je 0x41860b
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