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

Disassembly:
push 0xffffffffffffffff
push 0x4a3bfc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc0
mov eax, dword [esp + 0xd0]
push ebx
push ebp
push esi
xor esi, esi
push edi
lea ecx, [esp + 0x54]
mov dword [esp + 0x7c], esi
mov dword [esp + 0x98], esi
mov dword [esp + 0xb4], esi
mov dword [esp + 0x54], eax
call fcn.00432000
mov dword [esp + 0x24], esi
mov dword [esp + 0xd8], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], esi
mov al, byte [0x4c96b0]
mov byte [esp + 0xd8], 3
test al, al
mov dword [esp + 0x34], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
je 0x40d9d5
mov byte [0x4c96a0], 1
mov byte [0x4ca080], 1
mov al, byte [0x4c96e0]
test al, al
je 0x40d9f5
mov ecx, dword [0x4c9730]
mov dword [0x4c9730], esi
mov dword [esp + 0x20], ecx
mov byte [0x4c9740], 1
mov ebx, dword [esp + 0xe4]
xor ebp, ebp
cmp ebx, esi
mov dword [esp + 0x38], ebp
je 0x40da32
mov byte [ebx + 5], 1
mov eax, dword [esp + 0x64]
cmp eax, esi
je 0x40da27
push esi
lea ecx, [esp + 0x58]
inc ebp
call fcn.00432080
cmp dword [esp + 0x64], esi
jne 0x40da12
mov dword [esp + 0x38], ebp
lea ecx, [esp + 0x54]
call fcn.00432000
jmp 0x40da3b
mov ebp, 1
mov dword [esp + 0x38], ebp
mov eax, dword [esp + 0x64]
mov dword [esp + 0x40], esi
cmp eax, esi
je 0x40dc24
xor edi, edi
push 7
call fcn.00441650
add esp, 4
add edi, 0x32
cmp ebx, esi
mov dword [esp + 0x10], edi
je 0x40daaa
mov byte [ebx + 5], 1
mov eax, edi
cdq
idiv ebp
add eax, 0x1e
mov word [ebx + 2], ax
mov eax, dword [ebx + 0x10]
cmp eax, esi
je 0x40da8a
call dword [sym.imp.MSVCRT.dll_clock]
mov ecx, dword [ebx + 0x10]
cmp eax, ecx
jg 0x40e1f8
mov eax, dword [ebx + 8]
cmp eax, esi
je 0x40daaa
mov edx, dword [esp + 0x40]
push edx
mov eax, dword [ebx + 0xc]
push eax
mov ecx, dword [ebx + 8]
call ecx
add esp, 8
test al, al
jne 0x40e1f8
mov edx, dword [esp + 0x68]
mov ecx, dword [esp + 0x64]
push esi
push esi
mov eax, dword [edx + 4]
push esi
push eax
push ecx
call fcn.0040e280
mov al, byte [0x4c96a0]
add esp, 0x14
test al, al
je 0x40dbc5
mov al, byte [0x4ca080]
test al, al
jne 0x40dbc5
mov dx, word [0x4c9670]
mov eax, dword [esp + 0x64]
push edx
push eax
call fcn.00401930
add esp, 8
test al, al
jne 0x40db06
mov ecx, dword [esp + 0x64]
add ecx, 0x44
call fcn.004394a0
jmp 0x40dbc5
mov edx, dword [esp + 0x64]
mov eax, dword [edx + 0x38]
mov eax, dword [eax]
mov dword [esp + 0x48], eax
cmp byte [eax], 0
je 0x40dbc5
jmp 0x40db22
mov eax, dword [esp + 0x48]
cmp byte [esi + eax], 0x20
je 0x40dbac
mov eax, dword [esp + 0x64]
cmp si, word [eax + 0x48]
lea ebp, [eax + 0x44]
jl 0x40db5c
push 0xf0
push 0x4b1654
push 0x4b1640
push 0
push 0x4b1634
push 0x4c99b8
call fcn.00441210
add esp, 0x18
mov edx, dword [ebp]
movsx edi, si
shl edi, 2
mov ecx, edi
add ecx, edx
call fcn.00438a60
test al, al
je 0x40dbac
mov ecx, dword [esp + 0x64]
cmp si, word [ecx + 0x48]
lea ebp, [ecx + 0x44]
jl 0x40dba2
push 0xf0
push 0x4b1654
push 0x4b1640
push 0
push 0x4b1634
push 0x4c99b8
call fcn.00441210
add esp, 0x18
mov ecx, dword [ebp]
add ecx, edi
call fcn.00438cf0
mov edx, dword [esp + 0x48]
inc esi
cmp byte [esi + edx], 0
jne 0x40db1e
mov edi, dword [esp + 0x10]
mov ebp, dword [esp + 0x38]
xor esi, esi
mov al, byte [0x4c9710]
test al, al
jne 0x40dbe0
mov al, byte [0x4c96f0]
test al, al
jne 0x40dbe0
mov al, byte [0x4c96e0]
test al, al
je 0x40dbff
cmp dword [0x4c96d0], esi
je 0x40dbff
mov edx, dword [esp + 0x64]
lea eax, [esp + 0x18]
lea ecx, [esp + 0x14]
push eax
push ecx
push edx
call fcn.004021f0
add esp, 0xc
mov eax, dword [esp + 0x64]
mov ecx, dword [eax + 0x38]
cmp byte [ecx + 0xc], 7
jne 0x40dc10
inc dword [esp + 0x40]
push esi
lea ecx, [esp + 0x58]
call fcn.00432080
cmp dword [esp + 0x64], esi
jne 0x40da4d
mov al, byte [0x4c96e0]
test al, al
je 0x40dc37
mov edx, dword [esp + 0x20]
mov dword [0x4c9730], edx
lea ecx, [esp + 0x54]
call fcn.00432000
mov al, byte [0x4c9710]
test al, al
jne 0x40dc52
mov al, byte [0x4c96e0]
test al, al
je 0x40dcaa
mov eax, dword [esp + 0x64]
cmp eax, esi
je 0x40dcaa
cmp ebx, esi
je 0x40dc62
mov byte [ebx + 5], 1
mov cl, byte [0x4c9710]
lea edx, [esp + 0x14]
test cl, cl
lea ecx, [esp + 0x18]
push ecx
push edx
je 0x40dc8b
push eax
call fcn.00403ce0
add esp, 0xc
lea ecx, [esp + 0x54]
push esi
call fcn.00432080
jmp 0x40dc40
mov ecx, dword [esp + 0x70]
push 1
mov edx, dword [ecx + 4]
push edx
push eax
call fcn.0040e280
add esp, 0x14
lea ecx, [esp + 0x54]
push esi
call fcn.00432080
jmp 0x40dc40
lea ecx, [esp + 0x54]
call fcn.00432000
mov al, byte [0x4c96a0]
test al, al
jne 0x40dd99
xor edi, edi
cmp dword [esp + 0x64], esi
je 0x40dd99
push 8
call fcn.00441650
add esp, 4
add edi, 0xa
cmp ebx, esi
je 0x40dd25
mov byte [ebx + 5], 1
mov eax, edi
cdq
idiv ebp
add eax, 0x50
mov word [ebx + 2], ax
mov eax, dword [ebx + 0x10]
cmp eax, esi
je 0x40dd05
call dword [sym.imp.MSVCRT.dll_clock]
mov ecx, dword [ebx + 0x10]
cmp eax, ecx
jg 0x40e1f8
mov eax, dword [ebx + 8]
cmp eax, esi
je 0x40dd25
mov eax, dword [esp + 0x40]
push eax
mov ecx, dword [ebx + 0xc]
push ecx
mov edx, dword [ebx + 8]
call edx
add esp, 8
test al, al
jne 0x40e1f8
mov eax, dword [esp + 0x68]
mov edx, dword [esp + 0x64]
mov ecx, dword [eax + 4]
push ecx
push edx
call fcn.0040e8d0
mov eax, dword [0x4c9720]
add esp, 8
cmp eax, esi
jle 0x40dd5a
mov edx, dword [esp + 0x64]
lea eax, [esp + 0x28]
lea ecx, [esp + 0x24]
push eax
push ecx
push edx
call fcn.00401a10
add esp, 0xc
mov al, byte [0x4c9700]
test al, al
je 0x40dd82
cmp dword [0x4c96d0], esi
je 0x40dd82
mov edx, dword [esp + 0x64]
lea eax, [esp + 0x18]
lea ecx, [esp + 0x14]
push eax
push ecx
push edx
call fcn.004021f0
add esp, 0xc
push esi
lea ecx, [esp + 0x58]
call fcn.00432080
mov al, byte [0x4c96a0]
test al, al
je 0x40dcc2
push 0xe
call fcn.00441650
mov al, byte [0x4c96a0]
add esp, 4
test al, al
jne 0x40ddf3
mov al, byte [0x4c98f0]
test al, al
je 0x40ddd9
mov al, byte [0x4ca060]
test al, al
jne 0x40ddd9
mov eax, dword [esp + 0xe0]
push eax
push ebp
push ebx
call fcn.00415420
mov al, byte [0x4c96a0]
add esp, 0xc
test al, al
jne 0x40ddf3
cmp dword [0x4c9720], esi
je 0x40ddf3
lea ecx, [esp + 0x28]
lea edx, [esp + 0x24]
push ecx
push edx
call fcn.004046f0
add esp, 8
lea ecx, [esp + 0x54]
call fcn.00432000
mov al, byte [0x4c96a0]
test al, al
jne 0x40e014
mov edi, dword [sym.imp.MSVCRT.dll_strchr]
xor esi, esi
jmp 0x40de24
mov edi, dword [sym.imp.MSVCRT.dll_strchr]
mov ebx, dword [esp + 0xe4]
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x64]
test eax, eax
je 0x40e014
push 0x15
call fcn.00441650
add esp, 4
add esi, 5
test ebx, ebx
mov dword [esp + 0x10], esi
je 0x40de57
mov byte [ebx + 5], 1
mov eax, esi
cdq
idiv dword [esp + 0x38]
add eax, 0x5f
mov word [ebx + 2], ax
mov eax, dword [esp + 0x64]
push 0x46
push eax
call fcn.00410430
mov eax, dword [0x4c9720]
add esp, 8
test eax, eax
je 0x40de86
mov eax, dword [esp + 0x64]
lea ecx, [esp + 0x28]
lea edx, [esp + 0x24]
push ecx
push edx
push eax
call fcn.00402f90
add esp, 0xc
mov al, byte [0x4c9700]
test al, al
je 0x40deaf
mov eax, dword [0x4c96d0]
test eax, eax
je 0x40deaf
mov eax, dword [esp + 0x64]
lea ecx, [esp + 0x18]
lea edx, [esp + 0x14]
push ecx
push edx
push eax
call fcn.00403ce0
add esp, 0xc
mov al, byte [0x4c98c0]
test al, al
je 0x40ded9
mov ecx, dword [esp + 0x64]
push 0x2e
mov edx, dword [ecx + 0x38]
mov eax, dword [edx]
push eax
call edi
add esp, 8
test eax, eax
je 0x40ded9
mov eax, dword [esp + 0x64]
push eax
call fcn.00404bf0
jmp 0x40df01
mov al, byte [0x4c98b0]
test al, al
je 0x40df04
mov ecx, dword [esp + 0x64]
push 0x2e
mov edx, dword [ecx + 0x38]
mov eax, dword [edx]
push eax
call edi
add esp, 8
test eax, eax
je 0x40df04
mov eax, dword [esp + 0x64]
push eax
call fcn.00404cf0
add esp, 4
lea ecx, [esp + 0x54]
call fcn.00432220
mov eax, dword [esp + 0x64]
mov bx, word [eax + 0x48]
lea esi, [eax + 0x44]
mov ecx, esi
call fcn.00439210
mov ecx, dword [esp + 0x68]
mov si, word [esi + 4]
sub si, ax
mov eax, dword [esp + 0x64]
mov edx, dword [ecx + 4]
push edx
push eax
call fcn.00411e70
mov ecx, dword [esp + 0x6c]
mov edi, eax
mov eax, dword [esp + 0x3c]
push ecx
add eax, edi
mov dword [esp + 0x40], eax
call fcn.004123a0
mov ecx, dword [esp + 0x3c]
mov ebp, eax
add ecx, ebp
lea edx, [esp + 0x5c]
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x74]
lea eax, [esp + 0x58]
push edx
mov edx, dword [ecx + 4]
push eax
mov eax, dword [esp + 0x78]
push edx
push eax
call fcn.00412480
mov ecx, dword [esp + 0x68]
mov eax, dword [esp + 0x60]
add eax, ecx
mov ecx, dword [esp + 0x80]
mov dword [esp + 0x60], eax
add esp, 0x1c
mov edx, dword [ecx + 0x38]
mov al, byte [edx + 0xc]
cmp al, 5
je 0x40dfa0
cmp al, 8
je 0x40dfa0
cmp al, 7
jne 0x40dfbc
mov edx, dword [esp + 0x2c]
mov eax, ebx
sub eax, esi
add edx, eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x50]
add eax, edx
mov dword [esp + 0x1c], eax
push 0x50
push ecx
call fcn.00410430
mov al, byte [0x4c9bc0]
add esp, 8
test al, al
je 0x40dfe6
test di, di
jne 0x40dfe6
cmp bp, bx
jl 0x40dfe6
mov eax, dword [esp + 0x64]
lea ecx, [eax + 0x44]
call fcn.00439650
mov ecx, dword [esp + 0x64]
push 0x5a
push ecx
call fcn.00410430
add esp, 8
lea ecx, [esp + 0x54]
push 0
call fcn.00432080
mov al, byte [0x4c96a0]
test al, al
je 0x40de13
mov ebx, dword [esp + 0xe4]
lea ecx, [esp + 0x54]
call fcn.00432000
mov al, byte [0x4c96a0]
test al, al
jne 0x40e070
mov al, byte [0x4c96f0]
test al, al
je 0x40e070
mov eax, dword [esp + 0x64]
test eax, eax
je 0x40e070
test ebx, ebx
je 0x40e03f
mov byte [ebx + 5], 1
mov ecx, dword [0x4c96d0]
test ecx, ecx
je 0x40e05c
lea edx, [esp + 0x18]
lea ecx, [esp + 0x14]
push edx
push ecx
push eax
call fcn.00403ce0
add esp, 0xc
push 0
lea ecx, [esp + 0x58]
call fcn.00432080
mov al, byte [0x4c96a0]
test al, al
je 0x40e026
mov al, byte [0x4c9ba0]
test al, al
je 0x40e13d
mov eax, dword [esp + 0x2c]
test ax, ax
jle 0x40e0a4
movsx edx, word [esp + 0x1c]
mov dword [esp + 0x10], edx
fild dword [esp + 0x10]
movsx eax, ax
mov dword [esp + 0x10], eax
fidiv dword [esp + 0x10]
fstp qword [esp + 0x38]
jmp 0x40e0b4
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov esi, dword [esp + 0xe0]
mov ebp, dword [esp + 0x3c]
movsx eax, word [esp + 0x44]
mov ecx, dword [esi]
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], ecx
push ebp
fild dword [esp + 0x14]
fild dword [esp + 0x24]
mov ebp, dword [esp + 0x3c]
mov ebx, dword [esi + 4]
movsx edx, word [esp + 0x34]
fdiv st(1)
push ebp
mov dword [esp + 0x18], edx
movsx ebp, word [esp + 0x24]
push ebp
mov dword [esp + 0x38], ebx
sub esp, 8
movsx edi, word [esp + 0x48]
mov dword [esp + 0x5c], edi
fstp qword [esp]
fild dword [esp + 0x24]
push eax
sub esp, 8
fdiv st(1)
fstp qword [esp]
fild dword [esp + 0x68]
push edx
sub esp, 8
fdiv st(1)
fstp qword [esp]
fild dword [esp + 0x58]
push edi
sub esp, 8
fdiv st(1)
fstp qword [esp]
push ebx
push ecx
push 0x4b3114
fstp st(0)
call fcn.00443600
add esp, 0x44
jmp 0x40e144
mov esi, dword [esp + 0xe0]
fild dword [esi]
fstp dword [esp + 0x1c]
fild dword [esi + 4]
fdiv dword [esp + 0x1c]
fcomp qword [0x4c9790]
fnstsw ax
test ah, 0x41
je 0x40e1bd
movsx ecx, word [esp + 0x34]
mov dword [esp + 0x10], ecx
fild dword [esp + 0x10]
fdiv dword [esp + 0x1c]
fcomp qword [0x4c9780]
fnstsw ax
test ah, 1
jne 0x40e1bd
movsx edx, word [esp + 0x30]
mov dword [esp + 0x10], edx
fild dword [esp + 0x10]
fdiv dword [esp + 0x1c]
fcomp qword [0x4c9770]
fnstsw ax
test ah, 0x41
je 0x40e1bd
movsx eax, word [esp + 0x44]
mov dword [esp + 0x10], eax
mov byte [esp + 0x20], 1
fild dword [esp + 0x10]
fdiv dword [esp + 0x1c]
fcomp qword [0x4c9760]
fnstsw ax
test ah, 1
je 0x40e1c2
mov byte [esp + 0x20], 0
mov al, byte [0x4c96a0]
test al, al
jne 0x40e1e4
push 0x16
call fcn.00441650
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x58]
push ecx
push edx
call fcn.00412dc0
add esp, 0xc
lea eax, [esp + 0x54]
push eax
call fcn.00410a20
push 0x17
call fcn.00441650
add esp, 8
push 0x40a9f0
lea ecx, [esp + 0x1c]
mov byte [esp + 0xdc], 2
call fcn.0043fe20
push 0x40aa20
lea ecx, [esp + 0x18]
mov byte [esp + 0xdc], 1
call fcn.0043fe20
push 0x40a9f0
lea ecx, [esp + 0x2c]
mov byte [esp + 0xdc], 0
call fcn.0043fe20
push 0x40aa20
lea ecx, [esp + 0x28]
mov dword [esp + 0xdc], 0xffffffff
call fcn.0043fe20
mov ecx, dword [esp + 0xd0]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xcc
ret