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

Disassembly:
push 0xffffffffffffffff
push 0x4d56e6
mov eax, dword fs:[0]
push eax
sub esp, 0xc0
mov eax, dword [0x51b260]
xor eax, esp
mov dword [esp + 0xbc], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x51b260]
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.00457cf0
mov eax, dword [esp + 0xf8]
cmp eax, ebx
mov byte [esp + 0xdc], 4
mov dword [esp + 0x40], eax
jle 0x403d32
mov eax, 0x270f
mov esi, 0x4ff00c
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 0x403ba5
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x84]
call fcn.00401970
mov esi, dword [esp + 0x90]
mov ecx, esi
cmp esi, 0x27
jb 0x403bcf
mov ecx, 0x27
mov edi, dword [esp + 0x94]
mov ebp, dword [esp + 0x80]
mov eax, ebp
cmp edi, 0x10
jae 0x403beb
lea eax, [esp + 0x80]
push ecx
push 0x4db6e8
push eax
call fcn.00401010
add esp, 0xc
test eax, eax
jne 0x403c0d
cmp esi, 0x27
jb 0x403c0d
cmp esi, 0x27
setne al
test eax, eax
je 0x403c63
mov edx, ebp
cmp edi, 0x10
jae 0x403c1b
lea edx, [esp + 0x80]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403c20
sub eax, esi
push eax
push ebx
push edx
lea ecx, [esp + 0xf0]
call fcn.00401490
cmp eax, 0xffffffff
je 0x403c51
sub eax, ebx
cmp dword [esp + 0x14], eax
jl 0x403c51
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 0x403ba0
cmp dword [esp + 0x14], 0x270f
je 0x403d27
mov eax, dword [esp + 0x20]
mov ecx, eax
shl ecx, 4
add ecx, eax
lea ecx, [ecx*4 + 0x4ff00c]
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x403c88
sub eax, esi
push eax
push ecx
lea ecx, [esp + 0x84]
call fcn.00401970
mov edx, dword [esp + 0x14]
push edx
push ebx
lea eax, [esp + 0xbc]
push eax
lea ecx, [esp + 0xf0]
call fcn.00401cd0
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0xa4]
mov byte [esp + 0xe8], 5
call fcn.00401860
cmp dword [esp + 0xcc], 0x10
mov byte [esp + 0xdc], 4
jb 0x403cf4
mov ecx, dword [esp + 0xb8]
push ecx
call fcn.0048dd02
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.004038b0
lea edx, [esp + 0x7c]
push edx
lea ecx, [esp + 0x2c]
call fcn.004038b0
inc ebx
cmp ebx, dword [esp + 0x40]
jl 0x403b82
mov ecx, dword [esp + 0x38]
mov esi, dword [esp + 0x34]
cmp esi, ecx
jbe 0x403d47
call fcn.0049eacd
mov ecx, dword [esp + 0x38]
mov ebp, dword [esp + 0x28]
jmp 0x403d50
mov edi, ecx
cmp dword [esp + 0x34], ecx
jbe 0x403d61
call fcn.0049eacd
mov ecx, dword [esp + 0x38]
test ebp, ebp
je 0x403d6b
cmp ebp, dword [esp + 0x28]
je 0x403d74
call fcn.0049eacd
mov ecx, dword [esp + 0x38]
cmp esi, edi
je 0x403e0c
test ebp, ebp
jne 0x403d9c
call fcn.0049eacd
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x403d91
call fcn.0049eacd
cmp dword [esi + 0x18], 0x10
jb 0x403da1
mov edx, dword [esi + 4]
jmp 0x403da4
mov eax, dword [ebp]
jmp 0x403d87
lea edx, [esi + 4]
mov eax, edx
lea edi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403db0
sub eax, edi
push eax
push edx
lea ecx, [esp + 0xa0]
call fcn.00401970
cmp dword [esp + 0xac], 0
jne 0x403de6
push esi
push ebp
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x34]
call fcn.00402890
jmp 0x403d32
test ebp, ebp
jne 0x403e07
call fcn.0049eacd
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x403dfb
call fcn.0049eacd
mov ecx, dword [esp + 0x38]
add esi, 0x1c
jmp 0x403d50
mov eax, dword [ebp]
jmp 0x403df1
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 0x40418d
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 0x403e72
call fcn.0049eacd
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.00401860
mov dword [esp + 0x1c], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x18], 0x4ff77c
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 0x403eb0
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x84]
call fcn.00401970
cmp dword [esp + 0xb0], 0x10
mov edx, dword [esp + 0x9c]
jae 0x403edf
lea edx, [esp + 0x9c]
mov esi, dword [esp + 0x90]
mov edi, dword [esp + 0xac]
mov ecx, esi
cmp esi, edi
jb 0x403ef5
mov ecx, edi
mov ebp, dword [esp + 0x94]
mov ebx, dword [esp + 0x80]
mov eax, ebx
cmp ebp, 0x10
jae 0x403f11
lea eax, [esp + 0x80]
push ecx
push edx
push eax
call fcn.00401010
add esp, 0xc
test eax, eax
jne 0x403f2d
cmp esi, edi
jb 0x403f2d
cmp esi, edi
setne al
test eax, eax
je 0x403f80
inc dword [esp + 0x1c]
add dword [esp + 0x18], 0x44
mov ecx, esi
cmp esi, 0x27
jb 0x403f42
mov ecx, 0x27
mov eax, ebx
cmp ebp, 0x10
jae 0x403f50
lea eax, [esp + 0x80]
push ecx
push 0x4db6e8
push eax
call fcn.00401010
add esp, 0xc
test eax, eax
jne 0x403ea0
cmp esi, 0x27
jb 0x403ea0
cmp esi, 0x27
setne al
test eax, eax
jne 0x403ea0
jmp 0x403f88
mov dword [esp + 0x24], 1
xor ebx, ebx
push ebx
push 0x4db6d7
lea ecx, [esp + 0x54]
call fcn.00401970
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.00401860
mov ebp, 1
cmp dword [esp + 0x24], ebp
jne 0x40400e
mov eax, dword [esp + 0x1c]
mov esi, eax
shl esi, 4
add esi, eax
add esi, esi
add esi, esi
lea ecx, [esi + 0x4ff77c]
mov eax, ecx
lea edi, [eax + 1]
lea ebx, [ebx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x403ff0
sub eax, edi
push eax
push ecx
lea ecx, [esp + 0x54]
call fcn.00401970
mov ecx, dword [esi + fcn.004ff778]
mov dword [esp + 0x68], ecx
cmp dword [esp + 0x68], ebx
jge 0x404162
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 0x404048
lea ecx, [esp + 0x50]
cmp byte [ecx], 0x30
jne 0x4040df
cmp dword [esp + 0x60], ebp
jae 0x404064
call fcn.0049eacd
mov edx, dword [esp + 0x64]
mov eax, dword [esp + 0x50]
mov ecx, eax
cmp edx, esi
jae 0x40406e
lea ecx, [esp + 0x50]
cmp byte [ecx + 1], 0x78
je 0x404097
cmp dword [esp + 0x60], ebp
jae 0x404087
call fcn.0049eacd
mov edx, dword [esp + 0x64]
mov eax, dword [esp + 0x50]
mov ecx, eax
cmp edx, esi
jae 0x404091
lea ecx, [esp + 0x50]
cmp byte [ecx + 1], 0x58
jne 0x4040df
cmp edx, esi
jae 0x40409f
lea eax, [esp + 0x50]
push esi
push ebx
push eax
call fcn.0049f3e2
add esp, 0xc
mov dword [esp + 0x24], eax
fild dword [esp + 0x24]
test eax, eax
jge 0x4040bc
fadd qword [0x4db6e0]
fstp qword [esp + 0x74]
mov dword [esp + 0x68], 0x147
cmp dword [esp + 0xcc], esi
jb 0x404162
mov edx, dword [esp + 0xb8]
push edx
jmp 0x40415a
cmp edx, esi
jae 0x4040e7
lea eax, [esp + 0x50]
push ebx
push eax
call fcn.0049f171
fldz
fucomp st(1)
add esp, 8
fnstsw ax
test ah, 0x44
jp 0x40413d
mov edx, dword [esp + 0x64]
mov eax, dword [esp + 0x50]
mov ecx, eax
cmp edx, esi
jae 0x40410e
lea ecx, [esp + 0x50]
cmp byte [ecx], 0x30
je 0x40413d
fstp st(0)
cmp edx, esi
jae 0x40411d
lea eax, [esp + 0x50]
cmp byte [eax], 0x56
jne 0x40412a
mov dword [esp + 0x68], 0x270f
cmp dword [esp + 0xcc], esi
jb 0x404162
mov eax, dword [esp + 0xb8]
push eax
jmp 0x40415a
fstp qword [esp + 0x74]
mov dword [esp + 0x68], 0x147
cmp dword [esp + 0xcc], esi
jb 0x404162
mov ecx, dword [esp + 0xb8]
push ecx
call fcn.0048dd02
add esp, 4
mov ecx, dword [esp + 0x44]
lea edx, [esp + 0x4c]
push edx
call fcn.00403960
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 0x403e50
mov esi, dword [esp + 0x34]
xor ebx, ebx
lea ebp, [ebx + 0x10]
cmp esi, ebx
je 0x4041d7
mov edi, ecx
cmp esi, ecx
je 0x4041ce
add esi, 0x18
cmp dword [esi], ebp
jb 0x4041b3
mov eax, dword [esi - 0x14]
push eax
call fcn.0048dd02
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 0x4041a3
mov esi, dword [esp + 0x34]
push esi
call fcn.0048dd02
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.0048dd02
add esp, 4
cmp dword [esp + 0x64], ebp
jb 0x404203
mov eax, dword [esp + 0x50]
push eax
call fcn.0048dd02
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 0x40422e
mov ecx, dword [esp + 0x9c]
push ecx
call fcn.0048dd02
add esp, 4
mov dword [esp + 0xb0], esi
mov dword [esp + 0xac], ebx
mov byte [esp + 0x9c], 0
cmp dword [esp + 0x94], ebp
jb 0x40425d
mov edx, dword [esp + 0x80]
push edx
call fcn.0048dd02
add esp, 4
mov dword [esp + 0x94], esi
mov dword [esp + 0x90], ebx
mov byte [esp + 0x80], 0
cmp dword [esp + 0xfc], ebp
jb 0x40428c
mov eax, dword [esp + 0xe8]
push eax
call fcn.0048dd02
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.0049ef0f
add esp, 0xcc
ret 0x1c