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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
push 0xffffffffffffffff
push 0x5d1412
mov eax, dword fs:[0]
push eax
sub esp, 0x268
mov eax, dword [0x62fda0]
xor eax, esp
mov dword [esp + 0x230], eax
push ebx
push esi
push edi
mov eax, dword [0x62fda0]
xor eax, esp
push eax
lea eax, [esp + 0x278]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x64], eax
mov eax, dword [ebp + 0xc]
mov esi, ecx
xor edi, edi
push eax
lea ecx, [esp + 0x160]
mov dword [esp + 0x6c], eax
mov dword [esp + 0x14], edi
call fcn.005353a0
lea ecx, [esp + 0x9c]
mov dword [esp + 0x280], edi
call fcn.005bbf60
push edi
lea ecx, [esp + 0xa0]
mov byte [esp + 0x284], 1
call fcn.005b8490
lea ecx, [esp + 0x28]
mov dword [esp + 0x9c], edi
xor ebx, ebx
call fcn.004f5420
lea ecx, [esp + 0x48]
mov byte [esp + 0x280], 2
call fcn.004f5420
lea ecx, [esp + 0x88]
mov byte [esp + 0x280], 3
call fcn.004f5420
lea ecx, [esp + 0x74]
mov byte [esp + 0x280], 4
call fcn.004f5420
lea ecx, [esp + 0xa8]
mov byte [esp + 0x280], 5
call fcn.004ee1e0
lea ecx, [esp + 0xf0]
mov byte [esp + 0x280], 6
call fcn.004ee1e0
lea ecx, [esp + 0x138]
mov byte [esp + 0x280], 7
call fcn.004ee1e0
lea ecx, [esp + 0x114]
mov byte [esp + 0x280], 8
call fcn.004ee1e0
lea ecx, [esp + 0x15c]
mov byte [esp + 0x280], 9
call fcn.00534ff0
mov ecx, dword [esp + 0x168]
cmp ecx, dword [esp + 0x16c]
ja 0x40dc35
jmp 0x40d130
lea ecx, [esp + 0x15c]
call fcn.00535230
sub eax, 1
je 0x40d1d6
sub eax, 5
jne 0x40d245
mov ecx, dword [esp + 0x17c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x38]
call eax
cmp eax, 0xa
jl 0x40d257
inc ebx
cmp ebx, 1
jne 0x40d181
mov ecx, dword [esp + 0x17c]
push ecx
lea ecx, [esp + 0x2c]
call fcn.004f5860
jmp 0x40d24e
cmp ebx, 2
jne 0x40d19c
mov edx, dword [esp + 0x17c]
push edx
lea ecx, [esp + 0x4c]
call fcn.004f5860
jmp 0x40d24e
cmp ebx, 3
jne 0x40d1ba
mov eax, dword [esp + 0x17c]
push eax
lea ecx, [esp + 0x8c]
call fcn.004f5860
jmp 0x40d24e
cmp ebx, 4
jne 0x40d248
mov ecx, dword [esp + 0x17c]
push ecx
lea ecx, [esp + 0x78]
call fcn.004f5860
jmp 0x40d24e
mov ecx, dword [esp + 0x17c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x38]
call eax
cmp eax, 0xa
jl 0x40d257
inc edi
cmp edi, 1
jne 0x40d200
mov ecx, dword [esp + 0x17c]
push ecx
lea ecx, [esp + 0xac]
jmp 0x40d240
cmp edi, 2
jne 0x40d216
mov edx, dword [esp + 0x17c]
push edx
lea ecx, [esp + 0xf4]
jmp 0x40d240
cmp edi, 3
jne 0x40d22c
mov eax, dword [esp + 0x17c]
push eax
lea ecx, [esp + 0x13c]
jmp 0x40d240
cmp edi, 4
jne 0x40d245
mov ecx, dword [esp + 0x17c]
push ecx
lea ecx, [esp + 0x118]
call fcn.004efe30
cmp ebx, 4
jg 0x40d471
cmp edi, 4
jg 0x40d471
lea ecx, [esp + 0x15c]
call fcn.00535220
mov edx, dword [esp + 0x168]
cmp edx, dword [esp + 0x16c]
jbe 0x40d130
cmp ebx, 2
jne 0x40d5d5
cmp edi, ebx
jne 0x40da10
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x2c]
push ecx
mov ecx, esi
call fcn.004063a0
cmp eax, 1
jne 0x40dc35
lea edx, [esp + 0x48]
push edx
lea eax, [esp + 0x2c]
push eax
mov ecx, esi
call fcn.00404980
cmp eax, 1
jne 0x40dc35
lea ecx, [esp + 0xf0]
call fcn.004f10c0
sub esp, 8
lea ecx, [esp + 0xb0]
fstp qword [esp]
call fcn.004f10c0
sub esp, 8
mov ecx, esi
fstp qword [esp]
call fcn.00404a90
cmp eax, 1
jne 0x40dc35
lea ecx, [esp + 0xf0]
push ecx
lea edx, [esp + 0xac]
push edx
mov ecx, esi
call fcn.004049e0
cmp eax, 1
jne 0x40dc35
fld qword [0x5ecc58]
sub esp, 8
lea ecx, [esp + 0xb0]
fstp qword [esp]
call fcn.004f10c0
sub esp, 8
mov ecx, esi
fstp qword [esp]
call fcn.00404a90
cmp eax, 1
lea eax, [esp + 0x28]
jne 0x40d3ed
call fcn.00403270
fstp qword [esp + 0x5c]
lea eax, [esp + 0x48]
call fcn.00403270
fcomp qword [esp + 0x5c]
fnstsw ax
test ah, 0x41
lea eax, [esp + 0x28]
je 0x40d367
lea eax, [esp + 0x48]
call fcn.00403270
fstp qword [esp + 0x1c]
mov edi, dword [esp + 0xc4]
lea ecx, [esp + 0x28]
add edi, edi
call fcn.004f54c0
mov ecx, dword [esp + 0x68]
mov ebx, eax
mov eax, dword [ecx]
mov eax, dword [eax + 0x28]
lea edx, [esp + 0x3c]
push edx
add ebx, edi
call eax
fld qword [esp + 0x1c]
sub esp, 8
fstp qword [esp]
push ebx
push edi
lea ecx, [esp + 0x4c]
push ecx
lea ecx, [esp + 0xe0]
call fcn.004f4940
cmp edi, dword [ebp + 0x10]
mov byte [esp + 0x280], 0xa
jl 0x40d3d9
mov eax, dword [esp + 0x64]
mov ecx, dword [esi + 0x20]
lea edx, [esp + 0xcc]
push edx
push eax
call fcn.00491160
test eax, eax
je 0x40d3e1
mov dword [esp + 0x10], 1
lea ecx, [esp + 0xcc]
jmp 0x40dc28
call fcn.00403270
fstp qword [esp + 0x3c]
lea eax, [esp + 0x48]
call fcn.00403270
fcomp qword [esp + 0x3c]
fnstsw ax
test ah, 0x41
lea eax, [esp + 0x28]
je 0x40d412
lea eax, [esp + 0x48]
call fcn.00403270
fstp qword [esp + 0x5c]
lea ecx, [esp + 0x6c]
push ecx
lea ecx, [esp + 0xac]
call fcn.004f24d0
lea edx, [esp + 0x3c]
push edx
lea ecx, [esp + 0xf4]
call fcn.004f24d0
push eax
lea ecx, [esp + 0x70]
call fcn.005b87c0
fstp qword [esp + 0x3c]
lea ecx, [esp + 0x28]
call fcn.004f54c0
mov dword [esp + 0x1c], eax
fild dword [esp + 0x1c]
fld qword [esp + 0x3c]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 5
jp 0x40d53a
fstp st(0)
lea ecx, [esp + 0x114]
mov byte [esp + 0x280], 8
call fcn.004eeaf0
lea ecx, [esp + 0x138]
mov byte [esp + 0x280], 7
call fcn.004eeaf0
lea ecx, [esp + 0xf0]
mov byte [esp + 0x280], 6
call fcn.004eeaf0
lea ecx, [esp + 0xa8]
mov byte [esp + 0x280], 5
call fcn.004eeaf0
lea ecx, [esp + 0x74]
mov byte [esp + 0x280], 4
call fcn.004f54b0
lea ecx, [esp + 0x88]
mov byte [esp + 0x280], 3
call fcn.004f54b0
lea ecx, [esp + 0x48]
mov byte [esp + 0x280], 2
call fcn.004f54b0
lea ecx, [esp + 0x28]
mov byte [esp + 0x280], 1
call fcn.004f54b0
lea ecx, [esp + 0x9c]
mov byte [esp + 0x280], 0
call fcn.005b9680
lea ecx, [esp + 0x15c]
mov dword [esp + 0x280], 0xffffffff
call fcn.00534f60
xor eax, eax
jmp 0x40dcfb
call fcn.005bd3f0
mov ebx, eax
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x2c]
call fcn.004f6640
mov ecx, dword [esp + 0xc4]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x68]
mov edx, dword [ecx]
mov edx, dword [edx + 0x28]
mov edi, eax
lea eax, [esp + 0x14]
push eax
call edx
fld qword [esp + 0x5c]
mov eax, dword [esp + 0x1c]
push eax
push edi
push ebx
sub esp, 8
lea ecx, [esp + 0x28]
fstp qword [esp]
push ecx
lea ecx, [esp + 0xe4]
call fcn.005343b0
cmp edi, dword [ebp + 0x10]
mov byte [esp + 0x280], 0xb
jl 0x40d5b4
mov eax, dword [esp + 0x64]
mov ecx, dword [esi + 0x20]
lea edx, [esp + 0xcc]
push edx
push eax
call fcn.004910c0
test eax, eax
je 0x40d5bc
mov dword [esp + 0x10], 1
lea ecx, [esp + 0xcc]
mov byte [esp + 0x280], 9
call fcn.005344c0
jmp 0x40dc35
cmp ebx, 4
jne 0x40dc35
test edi, edi
jne 0x40d759
lea ecx, [esp + 0x88]
push ecx
lea edx, [esp + 0x2c]
push edx
mov ecx, esi
call fcn.00404980
cmp eax, 1
jne 0x40dc35
lea eax, [esp + 0x74]
push eax
lea ecx, [esp + 0x4c]
push ecx
mov ecx, esi
call fcn.00404980
cmp eax, 1
jne 0x40dc35
lea edx, [esp + 0x48]
push edx
lea eax, [esp + 0x2c]
push eax
mov ecx, esi
call fcn.00406420
cmp eax, 1
jne 0x40dc35
lea ecx, [esp + 0x48]
call fcn.004f54c0
lea ecx, [esp + 0x28]
mov edi, eax
call fcn.004f54c0
cmp eax, edi
jl 0x40d698
lea ecx, [esp + 0x28]
call fcn.004f54c0
lea ecx, [esp + 0x48]
mov ebx, eax
call fcn.004f54c0
mov edi, eax
lea eax, [esp + 0x28]
call fcn.00403270
fstp qword [esp + 0x14]
lea eax, [esp + 0x88]
call fcn.00403270
fcomp qword [esp + 0x14]
fnstsw ax
test ah, 0x41
jne 0x40d68f
lea eax, [esp + 0x28]
jmp 0x40d6d7
lea eax, [esp + 0x88]
jmp 0x40d6d7
lea ecx, [esp + 0x48]
call fcn.004f54c0
lea ecx, [esp + 0x28]
mov ebx, eax
call fcn.004f54c0
mov edi, eax
lea eax, [esp + 0x48]
call fcn.00403270
fstp qword [esp + 0x14]
lea eax, [esp + 0x74]
call fcn.00403270
fcomp qword [esp + 0x14]
fnstsw ax
test ah, 0x41
lea eax, [esp + 0x48]
je 0x40d6d7
lea eax, [esp + 0x74]
call fcn.00403270
fstp qword [esp + 0x1c]
mov ecx, dword [esp + 0x68]
mov edx, dword [ecx]
mov edx, dword [edx + 0x28]
lea eax, [esp + 0x6c]
push eax
call edx
fld qword [esp + 0x1c]
push 0
push edi
push ebx
sub esp, 8
lea eax, [esp + 0x80]
fstp qword [esp]
push eax
lea ecx, [esp + 0xe4]
call fcn.005343b0
cmp edi, dword [ebp + 0x10]
mov byte [esp + 0x280], 0xc
jl 0x40d738
mov edx, dword [esp + 0x64]
lea ecx, [esp + 0xcc]
push ecx
mov ecx, dword [esi + 0x20]
push edx
call fcn.004910c0
test eax, eax
je 0x40d740
mov dword [esp + 0x10], 1
lea ecx, [esp + 0xcc]
mov byte [esp + 0x280], 9
call fcn.005344c0
jmp 0x40dc35
cmp edi, 4
jne 0x40dc35
lea eax, [esp + 0x88]
push eax
lea ecx, [esp + 0x2c]
push ecx
mov ecx, esi
call fcn.00404980
cmp eax, 1
jne 0x40dc35
lea edx, [esp + 0x74]
push edx
lea eax, [esp + 0x4c]
push eax
mov ecx, esi
call fcn.00404980
cmp eax, 1
jne 0x40dc35
lea ecx, [esp + 0x48]
push ecx
lea edx, [esp + 0x2c]
push edx
mov ecx, esi
call fcn.00406420
cmp eax, 1
jne 0x40dc35
lea ecx, [esp + 0x48]
call fcn.004f54c0
lea ecx, [esp + 0x28]
mov edi, eax
call fcn.004f54c0
cmp eax, edi
mov edi, dword [esp + 0xc4]
jl 0x40d824
lea ecx, [esp + 0x28]
call fcn.004f54c0
lea ebx, [eax + edi*2]
mov edi, dword [esp + 0xc4]
lea ecx, [esp + 0x48]
call fcn.004f54c0
lea edi, [eax + edi*2]
lea eax, [esp + 0x28]
call fcn.00403270
fstp qword [esp + 0x14]
lea eax, [esp + 0x88]
call fcn.00403270
fcomp qword [esp + 0x14]
fnstsw ax
test ah, 0x41
jne 0x40d81b
lea eax, [esp + 0x28]
jmp 0x40d86c
lea eax, [esp + 0x88]
jmp 0x40d86c
lea ecx, [esp + 0x48]
call fcn.004f54c0
lea ebx, [eax + edi*2]
mov edi, dword [esp + 0xc4]
lea ecx, [esp + 0x28]
call fcn.004f54c0
lea edi, [eax + edi*2]
lea eax, [esp + 0x48]
call fcn.00403270
fstp qword [esp + 0x14]
lea eax, [esp + 0x74]
call fcn.00403270
fcomp qword [esp + 0x14]
fnstsw ax
test ah, 0x41
lea eax, [esp + 0x48]
je 0x40d86c
lea eax, [esp + 0x74]
call fcn.00403270
fstp qword [esp + 0x1c]
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0xf4]
call fcn.004eeb60
fld qword [eax]
lea ecx, [esp + 0x5c]
fstp qword [esp + 0x14]
push ecx
lea ecx, [esp + 0xac]
call fcn.004f1030
fld qword [eax]
fld qword [esp + 0x14]
sub esp, 0x10
fstp qword [esp + 8]
mov ecx, esi
fstp qword [esp]
call fcn.00404a90
test eax, eax
je 0x40d471
lea edx, [esp + 0x3c]
push edx
lea ecx, [esp + 0x13c]
call fcn.004eeb60
fld qword [eax]
lea eax, [esp + 0x5c]
fstp qword [esp + 0x14]
push eax
lea ecx, [esp + 0xf4]
call fcn.004f1030
fld qword [eax]
fld qword [esp + 0x14]
sub esp, 0x10
fstp qword [esp + 8]
mov ecx, esi
fstp qword [esp]
call fcn.00404a90
test eax, eax
je 0x40d471
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esp + 0x118]
call fcn.004eeb60
fld qword [eax]
lea edx, [esp + 0x5c]
fstp qword [esp + 0x14]
push edx
lea ecx, [esp + 0x13c]
call fcn.004f1030
fld qword [eax]
fld qword [esp + 0x14]
sub esp, 0x10
fstp qword [esp + 8]
mov ecx, esi
fstp qword [esp]
call fcn.00404a90
test eax, eax
je 0x40d471
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0xac]
call fcn.004eeb60
fld qword [eax]
lea ecx, [esp + 0x5c]
fstp qword [esp + 0x14]
push ecx
lea ecx, [esp + 0x118]
call fcn.004f1030
fld qword [eax]
fld qword [esp + 0x14]
sub esp, 0x10
fstp qword [esp + 8]
mov ecx, esi
fstp qword [esp]
call fcn.00404a90
test eax, eax
je 0x40d471
mov ecx, dword [esp + 0x68]
mov edx, dword [ecx]
mov edx, dword [edx + 0x28]
lea eax, [esp + 0x6c]
push eax
call edx
fld qword [esp + 0x1c]
mov eax, dword [esp + 0xc4]
push eax
push edi
push ebx
sub esp, 8
lea ecx, [esp + 0x80]
fstp qword [esp]
push ecx
lea ecx, [esp + 0xe4]
call fcn.005343b0
cmp edi, dword [ebp + 0x10]
mov byte [esp + 0x280], 0xd
jl 0x40d9ef
mov eax, dword [esp + 0x64]
mov ecx, dword [esi + 0x20]
lea edx, [esp + 0xcc]
push edx
push eax
call fcn.004910c0
test eax, eax
je 0x40d9f7
mov dword [esp + 0x10], 1
lea ecx, [esp + 0xcc]
mov byte [esp + 0x280], 9
call fcn.005344c0
jmp 0x40dc35
cmp edi, 4
jne 0x40dc35
lea ecx, [esp + 0x48]
push ecx
lea edx, [esp + 0x2c]
push edx
mov ecx, esi
call fcn.004063a0
cmp eax, 1
jne 0x40dc35
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x2c]
push ecx
mov ecx, esi
call fcn.00404980
cmp eax, 1
jne 0x40dc35
lea ecx, [esp + 0xf0]
call fcn.004f10c0
sub esp, 8
lea ecx, [esp + 0xb0]
fstp qword [esp]
call fcn.004f10c0
sub esp, 8
mov ecx, esi
fstp qword [esp]
call fcn.00404a90
cmp eax, 1
jne 0x40dc35
lea edx, [esp + 0xf0]
push edx
lea eax, [esp + 0xac]
push eax
mov ecx, esi
call fcn.004049e0
cmp eax, 1
jne 0x40dc35
lea ecx, [esp + 0x138]
call fcn.004f10c0
sub esp, 8
lea ecx, [esp + 0xb0]
fstp qword [esp]
call fcn.004f10c0
sub esp, 8
mov ecx, esi
fstp qword [esp]
call fcn.00404a90
cmp eax, 1
jne 0x40dc35
lea ecx, [esp + 0x138]
push ecx
lea edx, [esp + 0xac]
push edx
mov ecx, esi
call fcn.004049e0
cmp eax, 1
jne 0x40dc35
lea ecx, [esp + 0x114]
call fcn.004f10c0
sub esp, 8
lea ecx, [esp + 0xb0]
fstp qword [esp]
call fcn.004f10c0
sub esp, 8
mov ecx, esi
fstp qword [esp]
call fcn.00404a90
cmp eax, 1
jne 0x40dc35
lea eax, [esp + 0x114]
push eax
lea ecx, [esp + 0xac]
push ecx
mov ecx, esi
call fcn.004049e0
cmp eax, 1
jne 0x40dc35
fld qword [0x5ecc70]
sub esp, 8
lea ecx, [esp + 0xb0]
fstp qword [esp]
call fcn.004f10c0
sub esp, 8
mov ecx, esi
fstp qword [esp]
call fcn.00404a90
cmp eax, 1
jne 0x40dc35
lea eax, [esp + 0x28]
call fcn.00403270
fstp qword [esp + 0x14]
lea eax, [esp + 0x48]
call fcn.00403270
fcomp qword [esp + 0x14]
fnstsw ax
test ah, 0x41
lea eax, [esp + 0x28]
je 0x40dba0
lea eax, [esp + 0x48]
call fcn.00403270
fstp qword [esp + 0x5c]
lea edx, [esp + 0x48]
push edx
lea ecx, [esp + 0x2c]
call fcn.004f6640
lea ecx, [esp + 0x28]
mov edi, eax
call fcn.004f54c0
mov ecx, dword [esp + 0x68]
mov ebx, eax
mov eax, dword [ecx]
mov eax, dword [eax + 0x28]
lea edx, [esp + 0x3c]
push edx
add ebx, edi
call eax
fld qword [esp + 0x5c]
sub esp, 8
fstp qword [esp]
push ebx
push edi
lea ecx, [esp + 0x4c]
push ecx
lea ecx, [esp + 0x230]
call fcn.004f4940
cmp edi, dword [ebp + 0x10]
mov byte [esp + 0x280], 0xe
jl 0x40dc19
mov eax, dword [esp + 0x64]
mov ecx, dword [esi + 0x20]
lea edx, [esp + 0x21c]
push edx
push eax
call fcn.00491160
test eax, eax
je 0x40dc21
mov dword [esp + 0x10], 1
lea ecx, [esp + 0x21c]
mov byte [esp + 0x280], 9
call fcn.004f4970
lea ecx, [esp + 0x114]
mov byte [esp + 0x280], 8
call fcn.004eeaf0
lea ecx, [esp + 0x138]
mov byte [esp + 0x280], 7
call fcn.004eeaf0
lea ecx, [esp + 0xf0]
mov byte [esp + 0x280], 6
call fcn.004eeaf0
lea ecx, [esp + 0xa8]
mov byte [esp + 0x280], 5
call fcn.004eeaf0
lea ecx, [esp + 0x74]
mov byte [esp + 0x280], 4
call fcn.004f54b0
lea ecx, [esp + 0x88]
mov byte [esp + 0x280], 3
call fcn.004f54b0
lea ecx, [esp + 0x48]
mov byte [esp + 0x280], 2
call fcn.004f54b0
lea ecx, [esp + 0x28]
mov byte [esp + 0x280], 1
call fcn.004f54b0
lea ecx, [esp + 0x9c]
mov byte [esp + 0x280], 0
call fcn.005b9680
lea ecx, [esp + 0x15c]
mov dword [esp + 0x280], 0xffffffff
call fcn.00534f60
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x278]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.005bd2c6
mov esp, ebp
pop ebp
ret 0xc