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

Disassembly:
push 0xffffffffffffffff
push 0x4c5196
mov eax, dword fs:[0]
push eax
sub esp, 0xc0
mov eax, dword [0x521da0]
xor eax, esp
mov dword [esp + 0xbc], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x521da0]
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.0043de60
mov eax, dword [esp + 0xf8]
cmp eax, ebx
mov byte [esp + 0xdc], 4
mov dword [esp + 0x40], eax
jle 0x404a32
mov eax, 0x270f
mov esi, 0x50200c
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 0x4048a5
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x84]
call fcn.004028e0
mov esi, dword [esp + 0x90]
mov ecx, esi
cmp esi, 0x27
jb 0x4048cf
mov ecx, 0x27
mov edi, dword [esp + 0x94]
mov ebp, dword [esp + 0x80]
mov eax, ebp
cmp edi, 0x10
jae 0x4048eb
lea eax, [esp + 0x80]
push ecx
push 0x4ce988
push eax
call fcn.00401f10
add esp, 0xc
test eax, eax
jne 0x40490d
cmp esi, 0x27
jb 0x40490d
cmp esi, 0x27
setne al
test eax, eax
je 0x404963
mov edx, ebp
cmp edi, 0x10
jae 0x40491b
lea edx, [esp + 0x80]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404920
sub eax, esi
push eax
push ebx
push edx
lea ecx, [esp + 0xf0]
call fcn.004023e0
cmp eax, 0xffffffff
je 0x404951
sub eax, ebx
cmp dword [esp + 0x14], eax
jl 0x404951
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 0x4048a0
cmp dword [esp + 0x14], 0x270f
je 0x404a27
mov eax, dword [esp + 0x20]
mov ecx, eax
shl ecx, 4
add ecx, eax
lea ecx, [ecx*4 + 0x50200c]
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x404988
sub eax, esi
push eax
push ecx
lea ecx, [esp + 0x84]
call fcn.004028e0
mov edx, dword [esp + 0x14]
push edx
push ebx
lea eax, [esp + 0xbc]
push eax
lea ecx, [esp + 0xf0]
call fcn.00402c00
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0xa4]
mov byte [esp + 0xe8], 5
call fcn.00402800
cmp dword [esp + 0xcc], 0x10
mov byte [esp + 0xdc], 4
jb 0x4049f4
mov ecx, dword [esp + 0xb8]
push ecx
call fcn.00485196
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.004045b0
lea edx, [esp + 0x7c]
push edx
lea ecx, [esp + 0x2c]
call fcn.004045b0
inc ebx
cmp ebx, dword [esp + 0x40]
jl 0x404882
mov ecx, dword [esp + 0x38]
mov esi, dword [esp + 0x34]
cmp esi, ecx
jbe 0x404a47
call fcn.00496353
mov ecx, dword [esp + 0x38]
mov ebp, dword [esp + 0x28]
jmp 0x404a50
mov edi, ecx
cmp dword [esp + 0x34], ecx
jbe 0x404a61
call fcn.00496353
mov ecx, dword [esp + 0x38]
test ebp, ebp
je 0x404a6b
cmp ebp, dword [esp + 0x28]
je 0x404a74
call fcn.00496353
mov ecx, dword [esp + 0x38]
cmp esi, edi
je 0x404b0c
test ebp, ebp
jne 0x404a9c
call fcn.00496353
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x404a91
call fcn.00496353
cmp dword [esi + 0x18], 0x10
jb 0x404aa1
mov edx, dword [esi + 4]
jmp 0x404aa4
mov eax, dword [ebp]
jmp 0x404a87
lea edx, [esi + 4]
mov eax, edx
lea edi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404ab0
sub eax, edi
push eax
push edx
lea ecx, [esp + 0xa0]
call fcn.004028e0
cmp dword [esp + 0xac], 0
jne 0x404ae6
push esi
push ebp
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x34]
call fcn.004036d0
jmp 0x404a32
test ebp, ebp
jne 0x404b07
call fcn.00496353
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x404afb
call fcn.00496353
mov ecx, dword [esp + 0x38]
add esi, 0x1c
jmp 0x404a50
mov eax, dword [ebp]
jmp 0x404af1
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 0x404e8d
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 0x404b72
call fcn.00496353
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.00402800
mov dword [esp + 0x1c], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x18], 0x50277c
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 0x404bb0
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x84]
call fcn.004028e0
cmp dword [esp + 0xb0], 0x10
mov edx, dword [esp + 0x9c]
jae 0x404bdf
lea edx, [esp + 0x9c]
mov esi, dword [esp + 0x90]
mov edi, dword [esp + 0xac]
mov ecx, esi
cmp esi, edi
jb 0x404bf5
mov ecx, edi
mov ebp, dword [esp + 0x94]
mov ebx, dword [esp + 0x80]
mov eax, ebx
cmp ebp, 0x10
jae 0x404c11
lea eax, [esp + 0x80]
push ecx
push edx
push eax
call fcn.00401f10
add esp, 0xc
test eax, eax
jne 0x404c2d
cmp esi, edi
jb 0x404c2d
cmp esi, edi
setne al
test eax, eax
je 0x404c80
inc dword [esp + 0x1c]
add dword [esp + 0x18], 0x44
mov ecx, esi
cmp esi, 0x27
jb 0x404c42
mov ecx, 0x27
mov eax, ebx
cmp ebp, 0x10
jae 0x404c50
lea eax, [esp + 0x80]
push ecx
push 0x4ce988
push eax
call fcn.00401f10
add esp, 0xc
test eax, eax
jne 0x404ba0
cmp esi, 0x27
jb 0x404ba0
cmp esi, 0x27
setne al
test eax, eax
jne 0x404ba0
jmp 0x404c88
mov dword [esp + 0x24], 1
xor ebx, ebx
push ebx
push 0x4ce97b
lea ecx, [esp + 0x54]
call fcn.004028e0
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.00402800
mov ebp, 1
cmp dword [esp + 0x24], ebp
jne 0x404d0e
mov eax, dword [esp + 0x1c]
mov esi, eax
shl esi, 4
add esi, eax
add esi, esi
add esi, esi
lea ecx, [esi + 0x50277c]
mov eax, ecx
lea edi, [eax + 1]
lea ebx, [ebx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x404cf0
sub eax, edi
push eax
push ecx
lea ecx, [esp + 0x54]
call fcn.004028e0
mov ecx, dword [esi + 0x502778]
mov dword [esp + 0x68], ecx
cmp dword [esp + 0x68], ebx
jge 0x404e62
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 0x404d48
lea ecx, [esp + 0x50]
cmp byte [ecx], 0x30
jne 0x404ddf
cmp dword [esp + 0x60], ebp
jae 0x404d64
call fcn.00496353
mov edx, dword [esp + 0x64]
mov eax, dword [esp + 0x50]
mov ecx, eax
cmp edx, esi
jae 0x404d6e
lea ecx, [esp + 0x50]
cmp byte [ecx + 1], 0x78
je 0x404d97
cmp dword [esp + 0x60], ebp
jae 0x404d87
call fcn.00496353
mov edx, dword [esp + 0x64]
mov eax, dword [esp + 0x50]
mov ecx, eax
cmp edx, esi
jae 0x404d91
lea ecx, [esp + 0x50]
cmp byte [ecx + 1], 0x58
jne 0x404ddf
cmp edx, esi
jae 0x404d9f
lea eax, [esp + 0x50]
push esi
push ebx
push eax
call fcn.00496bbb
add esp, 0xc
mov dword [esp + 0x24], eax
fild dword [esp + 0x24]
test eax, eax
jge 0x404dbc
fadd qword [0x4ce980]
fstp qword [esp + 0x74]
mov dword [esp + 0x68], 0x147
cmp dword [esp + 0xcc], esi
jb 0x404e62
mov edx, dword [esp + 0xb8]
push edx
jmp 0x404e5a
cmp edx, esi
jae 0x404de7
lea eax, [esp + 0x50]
push ebx
push eax
call fcn.0049694a
fldz
fucomp st(1)
add esp, 8
fnstsw ax
test ah, 0x44
jp 0x404e3d
mov edx, dword [esp + 0x64]
mov eax, dword [esp + 0x50]
mov ecx, eax
cmp edx, esi
jae 0x404e0e
lea ecx, [esp + 0x50]
cmp byte [ecx], 0x30
je 0x404e3d
fstp st(0)
cmp edx, esi
jae 0x404e1d
lea eax, [esp + 0x50]
cmp byte [eax], 0x56
jne 0x404e2a
mov dword [esp + 0x68], 0x270f
cmp dword [esp + 0xcc], esi
jb 0x404e62
mov eax, dword [esp + 0xb8]
push eax
jmp 0x404e5a
fstp qword [esp + 0x74]
mov dword [esp + 0x68], 0x147
cmp dword [esp + 0xcc], esi
jb 0x404e62
mov ecx, dword [esp + 0xb8]
push ecx
call fcn.00485196
add esp, 4
mov ecx, dword [esp + 0x44]
lea edx, [esp + 0x4c]
push edx
call fcn.00404660
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 0x404b50
mov esi, dword [esp + 0x34]
xor ebx, ebx
lea ebp, [ebx + 0x10]
cmp esi, ebx
je 0x404ed7
mov edi, ecx
cmp esi, ecx
je 0x404ece
add esi, 0x18
cmp dword [esi], ebp
jb 0x404eb3
mov eax, dword [esi - 0x14]
push eax
call fcn.00485196
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 0x404ea3
mov esi, dword [esp + 0x34]
push esi
call fcn.00485196
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.00485196
add esp, 4
cmp dword [esp + 0x64], ebp
jb 0x404f03
mov eax, dword [esp + 0x50]
push eax
call fcn.00485196
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 0x404f2e
mov ecx, dword [esp + 0x9c]
push ecx
call fcn.00485196
add esp, 4
mov dword [esp + 0xb0], esi
mov dword [esp + 0xac], ebx
mov byte [esp + 0x9c], 0
cmp dword [esp + 0x94], ebp
jb 0x404f5d
mov edx, dword [esp + 0x80]
push edx
call fcn.00485196
add esp, 4
mov dword [esp + 0x94], esi
mov dword [esp + 0x90], ebx
mov byte [esp + 0x80], 0
cmp dword [esp + 0xfc], ebp
jb 0x404f8c
mov eax, dword [esp + 0xe8]
push eax
call fcn.00485196
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.00496795
add esp, 0xcc
ret 0x1c