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

Disassembly:
push 0xffffffffffffffff
push 0x4c6466
mov eax, dword fs:[0]
push eax
sub esp, 0xc0
mov eax, dword [0x522d80]
xor eax, esp
mov dword [esp + 0xbc], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x522d80]
xor eax, esp
push eax
lea eax, [esp + 0xd4]
mov dword fs:[0], eax
mov dword [esp + 0x24], ecx
xor ebx, ebx
mov eax, 0xf
mov dword [esp + 0xdc], ebx
mov dword [esp + 0x94], eax
mov dword [esp + 0x90], ebx
mov byte [esp + 0x80], bl
mov dword [esp + 0xb0], eax
mov dword [esp + 0xac], ebx
mov byte [esp + 0x9c], bl
mov dword [esp + 0x64], eax
or eax, 0xffffffff
mov dword [esp + 0x60], ebx
mov byte [esp + 0x50], bl
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebx
lea ecx, [esp + 0x28]
mov byte [esp + 0xdc], 3
call fcn.0043f070
mov eax, dword [esp + 0xf8]
cmp eax, ebx
mov byte [esp + 0xdc], 4
mov dword [esp + 0x40], eax
jle 0x404b62
mov eax, 0x270f
mov esi, 0x50300c
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], esi
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4049d5
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x84]
call fcn.00402870
mov esi, dword [esp + 0x90]
mov ecx, esi
cmp esi, 0x27
jb 0x4049ff
mov ecx, 0x27
mov edi, dword [esp + 0x94]
mov ebp, dword [esp + 0x80]
mov eax, ebp
cmp edi, 0x10
jae 0x404a1b
lea eax, [esp + 0x80]
push ecx
push 0x4cf978
push eax
call fcn.00401f00
add esp, 0xc
test eax, eax
jne 0x404a3d
cmp esi, 0x27
jb 0x404a3d
cmp esi, 0x27
setne al
test eax, eax
je 0x404a93
mov edx, ebp
cmp edi, 0x10
jae 0x404a4b
lea edx, [esp + 0x80]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404a50
sub eax, esi
push eax
push ebx
push edx
lea ecx, [esp + 0xf0]
call fcn.004023c0
cmp eax, 0xffffffff
je 0x404a81
sub eax, ebx
cmp dword [esp + 0x14], eax
jl 0x404a81
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x20], eax
inc dword [esp + 0x1c]
add dword [esp + 0x18], 0x44
mov esi, dword [esp + 0x18]
jmp 0x4049d0
cmp dword [esp + 0x14], 0x270f
je 0x404b57
mov eax, dword [esp + 0x20]
mov ecx, eax
shl ecx, 4
add ecx, eax
lea ecx, [ecx*4 + 0x50300c]
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x404ab8
sub eax, esi
push eax
push ecx
lea ecx, [esp + 0x84]
call fcn.00402870
mov edx, dword [esp + 0x14]
push edx
push ebx
lea eax, [esp + 0xbc]
push eax
lea ecx, [esp + 0xf0]
call fcn.00402bf0
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0xa4]
mov byte [esp + 0xe8], 5
call fcn.00402790
cmp dword [esp + 0xcc], 0x10
mov byte [esp + 0xdc], 4
jb 0x404b24
mov ecx, dword [esp + 0xb8]
push ecx
call fcn.00485fc1
add esp, 4
mov edx, dword [esp + 0x90]
mov eax, dword [esp + 0xac]
lea ecx, [esp + 0x98]
add eax, edx
push ecx
lea ecx, [esp + 0x2c]
lea ebx, [ebx + eax - 1]
call fcn.004046e0
lea edx, [esp + 0x7c]
push edx
lea ecx, [esp + 0x2c]
call fcn.004046e0
inc ebx
cmp ebx, dword [esp + 0x40]
jl 0x4049b2
mov ecx, dword [esp + 0x38]
mov esi, dword [esp + 0x34]
cmp esi, ecx
jbe 0x404b77
call fcn.00497123
mov ecx, dword [esp + 0x38]
mov ebp, dword [esp + 0x28]
jmp 0x404b80
mov edi, ecx
cmp dword [esp + 0x34], ecx
jbe 0x404b91
call fcn.00497123
mov ecx, dword [esp + 0x38]
test ebp, ebp
je 0x404b9b
cmp ebp, dword [esp + 0x28]
je 0x404ba4
call fcn.00497123
mov ecx, dword [esp + 0x38]
cmp esi, edi
je 0x404c3c
test ebp, ebp
jne 0x404bcc
call fcn.00497123
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x404bc1
call fcn.00497123
cmp dword [esi + 0x18], 0x10
jb 0x404bd1
mov edx, dword [esi + 4]
jmp 0x404bd4
mov eax, dword [ebp]
jmp 0x404bb7
lea edx, [esi + 4]
mov eax, edx
lea edi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404be0
sub eax, edi
push eax
push edx
lea ecx, [esp + 0xa0]
call fcn.00402870
cmp dword [esp + 0xac], 0
jne 0x404c16
push esi
push ebp
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x34]
call fcn.00403770
jmp 0x404b62
test ebp, ebp
jne 0x404c37
call fcn.00497123
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x404c2b
call fcn.00497123
mov ecx, dword [esp + 0x38]
add esi, 0x1c
jmp 0x404b80
mov eax, dword [ebp]
jmp 0x404c21
mov esi, ecx
sub esi, dword [esp + 0x34]
mov eax, 0x92492493
imul esi
add edx, esi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x40], eax
mov dword [esp + 0x14], 0
test eax, eax
jle 0x404fbd
mov edx, dword [esp + 0x24]
add edx, 8
mov dword [esp + 0x44], edx
mov dword [esp + 0x20], 0
lea esp, [esp]
sub ecx, dword [esp + 0x34]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x14], eax
jb 0x404ca2
call fcn.00497123
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x20]
push 0xffffffffffffffff
xor esi, esi
add ecx, edx
push esi
push ecx
lea ecx, [esp + 0xa4]
call fcn.00402790
mov dword [esp + 0x1c], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x18], 0x50377c
mov edi, edi
mov esi, dword [esp + 0x18]
mov eax, esi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404ce0
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x84]
call fcn.00402870
cmp dword [esp + 0xb0], 0x10
mov edx, dword [esp + 0x9c]
jae 0x404d0f
lea edx, [esp + 0x9c]
mov esi, dword [esp + 0x90]
mov edi, dword [esp + 0xac]
mov ecx, esi
cmp esi, edi
jb 0x404d25
mov ecx, edi
mov ebp, dword [esp + 0x94]
mov ebx, dword [esp + 0x80]
mov eax, ebx
cmp ebp, 0x10
jae 0x404d41
lea eax, [esp + 0x80]
push ecx
push edx
push eax
call fcn.00401f00
add esp, 0xc
test eax, eax
jne 0x404d5d
cmp esi, edi
jb 0x404d5d
cmp esi, edi
setne al
test eax, eax
je 0x404db0
inc dword [esp + 0x1c]
add dword [esp + 0x18], 0x44
mov ecx, esi
cmp esi, 0x27
jb 0x404d72
mov ecx, 0x27
mov eax, ebx
cmp ebp, 0x10
jae 0x404d80
lea eax, [esp + 0x80]
push ecx
push 0x4cf978
push eax
call fcn.00401f00
add esp, 0xc
test eax, eax
jne 0x404cd0
cmp esi, 0x27
jb 0x404cd0
cmp esi, 0x27
setne al
test eax, eax
jne 0x404cd0
jmp 0x404db8
mov dword [esp + 0x24], 1
xor ebx, ebx
push ebx
push 0x4cf96b
lea ecx, [esp + 0x54]
call fcn.00402870
or eax, 0xffffffff
push eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
push ebx
lea eax, [esp + 0xa0]
push eax
lea ecx, [esp + 0x58]
mov dword [esp + 0x80], ebx
mov dword [esp + 0x84], ebx
call fcn.00402790
mov ebp, 1
cmp dword [esp + 0x24], ebp
jne 0x404e3e
mov eax, dword [esp + 0x1c]
mov esi, eax
shl esi, 4
add esi, eax
add esi, esi
add esi, esi
lea ecx, [esi + 0x50377c]
mov eax, ecx
lea edi, [eax + 1]
lea ebx, [ebx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x404e20
sub eax, edi
push eax
push ecx
lea ecx, [esp + 0x54]
call fcn.00402870
mov ecx, dword [esi + 0x503778]
mov dword [esp + 0x68], ecx
cmp dword [esp + 0x68], ebx
jge 0x404f92
mov edx, dword [esp + 0x64]
mov eax, dword [esp + 0x50]
mov esi, 0x10
mov dword [esp + 0xcc], 0xf
mov dword [esp + 0xc8], ebx
mov byte [esp + 0xb8], bl
mov ecx, eax
cmp edx, esi
jae 0x404e78
lea ecx, [esp + 0x50]
cmp byte [ecx], 0x30
jne 0x404f0f
cmp dword [esp + 0x60], ebp
jae 0x404e94
call fcn.00497123
mov edx, dword [esp + 0x64]
mov eax, dword [esp + 0x50]
mov ecx, eax
cmp edx, esi
jae 0x404e9e
lea ecx, [esp + 0x50]
cmp byte [ecx + 1], 0x78
je 0x404ec7
cmp dword [esp + 0x60], ebp
jae 0x404eb7
call fcn.00497123
mov edx, dword [esp + 0x64]
mov eax, dword [esp + 0x50]
mov ecx, eax
cmp edx, esi
jae 0x404ec1
lea ecx, [esp + 0x50]
cmp byte [ecx + 1], 0x58
jne 0x404f0f
cmp edx, esi
jae 0x404ecf
lea eax, [esp + 0x50]
push esi
push ebx
push eax
call fcn.0049798b
add esp, 0xc
mov dword [esp + 0x24], eax
fild dword [esp + 0x24]
test eax, eax
jge 0x404eec
fadd qword [0x4cf970]
fstp qword [esp + 0x74]
mov dword [esp + 0x68], 0x147
cmp dword [esp + 0xcc], esi
jb 0x404f92
mov edx, dword [esp + 0xb8]
push edx
jmp 0x404f8a
cmp edx, esi
jae 0x404f17
lea eax, [esp + 0x50]
push ebx
push eax
call fcn.0049771a
fldz
fucomp st(1)
add esp, 8
fnstsw ax
test ah, 0x44
jp 0x404f6d
mov edx, dword [esp + 0x64]
mov eax, dword [esp + 0x50]
mov ecx, eax
cmp edx, esi
jae 0x404f3e
lea ecx, [esp + 0x50]
cmp byte [ecx], 0x30
je 0x404f6d
fstp st(0)
cmp edx, esi
jae 0x404f4d
lea eax, [esp + 0x50]
cmp byte [eax], 0x56
jne 0x404f5a
mov dword [esp + 0x68], 0x270f
cmp dword [esp + 0xcc], esi
jb 0x404f92
mov eax, dword [esp + 0xb8]
push eax
jmp 0x404f8a
fstp qword [esp + 0x74]
mov dword [esp + 0x68], 0x147
cmp dword [esp + 0xcc], esi
jb 0x404f92
mov ecx, dword [esp + 0xb8]
push ecx
call fcn.00485fc1
add esp, 4
mov ecx, dword [esp + 0x44]
lea edx, [esp + 0x4c]
push edx
call fcn.00404790
mov eax, dword [esp + 0x14]
add dword [esp + 0x20], 0x1c
mov ecx, dword [esp + 0x38]
add eax, ebp
cmp eax, dword [esp + 0x40]
mov dword [esp + 0x14], eax
jl 0x404c80
mov esi, dword [esp + 0x34]
xor ebx, ebx
lea ebp, [ebx + 0x10]
cmp esi, ebx
je 0x405007
mov edi, ecx
cmp esi, ecx
je 0x404ffe
add esi, 0x18
cmp dword [esi], ebp
jb 0x404fe3
mov eax, dword [esi - 0x14]
push eax
call fcn.00485fc1
add esp, 4
mov dword [esi], 0xf
mov dword [esi - 4], ebx
mov byte [esi - 0x14], 0
add esi, 0x1c
lea ecx, [esi - 0x18]
cmp ecx, edi
jne 0x404fd3
mov esi, dword [esp + 0x34]
push esi
call fcn.00485fc1
add esp, 4
mov edx, dword [esp + 0x28]
push edx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
call fcn.00485fc1
add esp, 4
cmp dword [esp + 0x64], ebp
jb 0x405033
mov eax, dword [esp + 0x50]
push eax
call fcn.00485fc1
add esp, 4
mov esi, 0xf
mov dword [esp + 0x64], esi
mov dword [esp + 0x60], ebx
mov byte [esp + 0x50], 0
cmp dword [esp + 0xb0], ebp
jb 0x40505e
mov ecx, dword [esp + 0x9c]
push ecx
call fcn.00485fc1
add esp, 4
mov dword [esp + 0xb0], esi
mov dword [esp + 0xac], ebx
mov byte [esp + 0x9c], 0
cmp dword [esp + 0x94], ebp
jb 0x40508d
mov edx, dword [esp + 0x80]
push edx
call fcn.00485fc1
add esp, 4
mov dword [esp + 0x94], esi
mov dword [esp + 0x90], ebx
mov byte [esp + 0x80], 0
cmp dword [esp + 0xfc], ebp
jb 0x4050bc
mov eax, dword [esp + 0xe8]
push eax
call fcn.00485fc1
add esp, 4
mov ecx, dword [esp + 0xd4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xbc]
xor ecx, esp
call fcn.00497565
add esp, 0xcc
ret 0x1c