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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4e5790
push eax
mov dword fs:[0], esp
sub esp, 0x7c
push ebp
mov ebp, ecx
mov ecx, dword [ebp + 0x1e0]
test ecx, ecx
je 0x40ea67
mov eax, dword [ecx]
push esi
push edi
lea edx, [esp + 0x78]
push 0
push edx
call dword [eax + 0x10]
mov al, byte [ebp + 0x84]
mov dword [esp + 0x90], 0
test al, al
mov esi, 1
jne 0x40e01a
mov ecx, dword [ebp + 0x140]
test ecx, ecx
je 0x40e01a
cmp dword [ebp + 0x5c], 3
jne 0x40e01a
lea eax, [esp + 0x38]
push eax
call fcn.0041d870
mov cl, byte [ebp + 0x89]
mov edx, dword [ebp + 0x140]
push ecx
mov ecx, dword [ebp + 0x1e0]
add edx, 0xfc
push eax
push edx
mov byte [esp + 0x9c], 1
call fcn.00437800
mov ecx, dword [esp + 0x38]
mov byte [esp + 0x90], 0
test ecx, ecx
je 0x40e01a
push 3
call fcn.004183c0
mov ecx, dword [ebp + 0x1e0]
push ebx
lea eax, [esp + 0x30]
push esi
push eax
call fcn.004379a0
mov cl, byte [esp + 0x13]
push 0
mov byte [esp + 0x70], cl
lea ecx, [esp + 0x70]
mov byte [esp + 0x98], 2
call fcn.00401510
mov edi, 0x5144b0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x5144b0
lea ecx, [esp + 0x74]
call fcn.00416e90
mov eax, dword [esp + 0x34]
mov byte [esp + 0x94], 3
test eax, eax
jle 0x40e0f9
mov edx, dword [esp + 0x30]
mov edx, dword [edx + 4]
test edx, edx
jne 0x40e089
mov edx, 0x4ec3fc
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea ecx, [esp + 0x74]
call fcn.00416e90
cmp dword [esp + 0x34], esi
jle 0x40e0f9
mov ebx, 0x10
mov eax, dword [esp + 0x30]
mov eax, dword [ebx + eax + 4]
test eax, eax
jne 0x40e0bc
mov eax, 0x4ec3fc
push eax
push 0x503950
push 0x5145e8
call fcn.004bea0b
mov edi, 0x5145e8
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x5145e8
lea ecx, [esp + 0x74]
call fcn.00416dd0
mov eax, dword [esp + 0x34]
inc esi
add ebx, 0x10
cmp esi, eax
jl 0x40e0ab
lea ecx, [esp + 0x24]
push 0
push ecx
mov ecx, dword [ebp + 0x1e0]
call fcn.004379a0
mov dl, byte [esp + 0x13]
push 0
lea ecx, [esp + 0x60]
mov byte [esp + 0x98], 4
mov byte [esp + 0x60], dl
call fcn.00401510
mov edi, 0x5144b0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x5144b0
lea ecx, [esp + 0x64]
call fcn.00416e90
mov eax, dword [esp + 0x28]
mov byte [esp + 0x94], 5
test eax, eax
jle 0x40e1df
mov eax, dword [esp + 0x24]
mov edx, dword [eax + 4]
test edx, edx
jne 0x40e168
mov edx, 0x4ec3fc
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea ecx, [esp + 0x64]
call fcn.00416e90
mov eax, dword [esp + 0x28]
mov esi, 1
cmp eax, esi
jle 0x40e1df
mov ebx, 0x10
mov ecx, dword [esp + 0x24]
mov eax, dword [ebx + ecx + 4]
test eax, eax
jne 0x40e1a2
mov eax, 0x4ec3fc
push eax
push 0x503950
push 0x5145fc
call fcn.004bea0b
mov edi, 0x5145fc
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x5145fc
lea ecx, [esp + 0x64]
call fcn.00416dd0
mov eax, dword [esp + 0x28]
inc esi
add ebx, 0x10
cmp esi, eax
jl 0x40e191
cmp dword [ebp + 0x5c], 1
je 0x40e27a
mov al, byte [esp + 0xa0]
test al, al
je 0x40e27a
mov ecx, dword [ebp + 0x1dc]
test ecx, ecx
je 0x40e27a
call fcn.00435170
test eax, eax
je 0x40e23b
mov cl, byte [ebp + 0x89]
test cl, cl
mov ecx, eax
je 0x40e22a
call fcn.00433210
mov ecx, dword [ebp + 0x1e0]
push eax
call fcn.00436f30
jmp 0x40e23b
call fcn.00433210
mov ecx, dword [ebp + 0x1e0]
push eax
call fcn.00436f10
mov ecx, dword [ebp + 0x1dc]
call fcn.00435190
test eax, eax
je 0x40e27a
mov cl, byte [ebp + 0x89]
test cl, cl
mov ecx, eax
je 0x40e269
call fcn.0041a2f0
mov eax, dword [ebp + 0x1e0]
fstp dword [eax + 0x178]
jmp 0x40e27a
call fcn.0041a2f0
mov eax, dword [ebp + 0x1e0]
fstp dword [eax + 0x174]
mov al, byte [ebp + 0x89]
test al, al
mov eax, dword [ebp + 0x1e0]
je 0x40e298
mov ecx, dword [eax + 0x250]
mov dword [eax + 0x250], ecx
jmp 0x40e2a4
mov ecx, dword [eax + 0x248]
mov dword [eax + 0x24c], ecx
mov eax, dword [ebp + 0x1e0]
mov esi, dword [eax + 0x154]
test esi, esi
jne 0x40e2b9
mov esi, 0x4ec3fc
mov ecx, dword [eax + 0x238]
mov edx, dword [eax + 0x228]
mov edi, dword [eax + 0x22c]
mov ebx, dword [eax + 0x230]
mov eax, dword [eax + 0x234]
push esi
push ecx
push edx
push edi
push ebx
mov ebx, dword [esp + 0xb0]
push eax
push 0x5a
push 0xfa
push 0x2e
push 0x226
push 0x5038d4
push ebx
call fcn.004bec26
mov eax, dword [ebp + 0x1e0]
add esp, 0x28
sub esp, 8
fld dword [eax + 0x174]
mov edx, dword [eax + 0x170]
mov eax, dword [eax + 0x240]
fstp qword [esp + 8]
mov dword [esp + 0x24], edx
fld dword [esp + 0x24]
fstp qword [esp]
push eax
push 0x5038a8
push ebx
call fcn.004bec26
add esp, 0x1c
push 0x5037cc
push ebx
call fcn.004bec26
mov eax, dword [ebp + 0x1e0]
add esp, 8
mov ecx, dword [eax + 0x278]
mov eax, dword [eax + 0x254]
push ecx
push eax
push 0x5037b4
push ebx
call fcn.004bec26
mov eax, dword [ebp + 0x1e0]
mov esi, dword [esp + 0x70]
add esp, 0x10
mov ecx, dword [eax + 0x250]
mov edx, dword [eax + 0x24c]
mov eax, dword [eax + 0x248]
test esi, esi
jne 0x40e38e
mov esi, 0x4ec3fc
push ecx
push edx
push eax
push esi
push 0x50375c
push ebx
call fcn.004bec26
mov eax, dword [ebp + 0x1e0]
add esp, 0x18
mov ecx, dword [eax + 0x220]
mov edx, dword [eax + 0x258]
mov eax, dword [eax + 0x224]
push ecx
push edx
push eax
push 0x5036f4
push ebx
call fcn.004bec26
mov eax, dword [esp + 0x84]
add esp, 0x14
test eax, eax
mov ecx, 0x4ec3fc
je 0x40e3db
mov ecx, eax
mov eax, dword [ebp + 0x1e0]
push ecx
sub esp, 8
fld dword [eax + 0x178]
mov eax, dword [eax + 0x23c]
fstp qword [esp]
push eax
push 0x5036b4
push ebx
call fcn.004bec26
mov eax, dword [ebp + 0x1e0]
add esp, 0x18
mov ecx, dword [eax + 0x2d8]
test ecx, ecx
je 0x40e489
push 0x5036a0
push ebx
call fcn.004bec26
mov ecx, dword [ebp + 0x1e0]
add esp, 8
lea eax, [esp + 0x3c]
push eax
call fcn.00438350
mov ecx, dword [0x4ec400]
mov eax, dword [ebp + 0x1e0]
push ecx
lea edx, [esp + 0x40]
push 0
push edx
lea ecx, [eax + 0x2dc]
mov byte [esp + 0xa0], 6
call fcn.00415fc0
mov eax, dword [esp + 0x40]
test eax, eax
jne 0x40e465
mov eax, 0x4ec3fc
push eax
push 0x50369c
push ebx
call fcn.004bec26
add esp, 0xc
lea ecx, [esp + 0x3c]
mov byte [esp + 0x94], 5
push 1
call fcn.00401510
jmp 0x40e4b1
mov ecx, dword [eax + 0x2e4]
test ecx, ecx
je 0x40e4b1
mov eax, dword [eax + 0x2e0]
test eax, eax
jne 0x40e4a2
mov eax, 0x4ec3fc
push eax
push 0x503684
push ebx
call fcn.004bec26
add esp, 0xc
mov al, byte [esp + 0x13]
xor edi, edi
push edi
lea ecx, [esp + 0x50]
mov byte [esp + 0x50], al
call fcn.00401510
mov esi, dword [ebp + 0x1e0]
mov byte [esp + 0x94], 7
add esi, 0x27c
mov dword [esp + 0x14], edi
mov dword [esp + 0x20], esi
mov eax, dword [esi + 4]
mov eax, dword [eax]
mov dword [esp + 0x18], eax
mov ecx, dword [esi + 4]
cmp eax, ecx
je 0x40e5af
cmp dword [esp + 0x14], edi
jle 0x40e575
mov edi, 0x503680
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x54]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
mov ecx, dword [0x4ec400]
sub ecx, edx
cmp ecx, edi
ja 0x40e521
call fcn.004b0f00
test edi, edi
jbe 0x40e573
mov edx, dword [esp + 0x54]
push 0
lea ecx, [esp + 0x50]
lea eax, [edx + edi]
push eax
mov dword [esp + 0x24], eax
call fcn.00401580
test al, al
je 0x40e573
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x50]
add eax, ecx
mov ecx, edi
mov edx, ecx
mov esi, 0x503680
mov edi, eax
mov eax, dword [esp + 0x1c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x50]
call fcn.00401560
mov esi, dword [esp + 0x20]
xor edi, edi
mov ecx, dword [esp + 0x18]
mov edx, dword [0x4ec400]
push edx
push edi
lea eax, [ecx + 0xc]
lea ecx, [esp + 0x54]
push eax
call fcn.00416cf0
lea ecx, [esp + 0x18]
call fcn.004169c0
mov edx, dword [esp + 0x14]
mov eax, dword [esi + 4]
mov ecx, dword [esp + 0x18]
inc edx
cmp ecx, eax
mov dword [esp + 0x14], edx
jne 0x40e4f5
mov eax, dword [esp + 0x50]
cmp eax, edi
jne 0x40e5bc
mov eax, 0x4ec3fc
push eax
push 0x503668
push ebx
call fcn.004bec26
mov eax, dword [ebp + 0x1e0]
add esp, 0xc
mov al, byte [eax + 0x273]
test al, al
mov eax, 0x503660
jne 0x40e5e5
mov eax, 0x503658
push eax
push 0x50363c
push ebx
call fcn.004bec26
mov ecx, dword [ebp + 0x1e0]
add esp, 0xc
mov al, byte [ecx + 0x274]
test al, al
mov eax, 0x503660
jne 0x40e60e
mov eax, 0x503658
push eax
push 0x503624
push ebx
call fcn.004bec26
mov edx, dword [ebp + 0x1e0]
add esp, 0xc
mov al, byte [edx + 0x260]
test al, al
mov eax, 0x503660
jne 0x40e637
mov eax, 0x503658
push eax
push 0x50360c
push ebx
call fcn.004bec26
mov eax, dword [ebp + 0x1e0]
add esp, 0xc
mov cl, byte [eax + 0x261]
mov eax, 0x503660
test cl, cl
jne 0x40e660
mov eax, 0x503658
push eax
push 0x5035f0
push ebx
call fcn.004bec26
mov ecx, dword [ebp + 0x1e0]
add esp, 0xc
mov al, byte [ecx + 0x262]
test al, al
mov eax, 0x503660
jne 0x40e689
mov eax, 0x503658
push eax
push 0x5035d8
push ebx
call fcn.004bec26
mov edx, dword [ebp + 0x1e0]
add esp, 0xc
mov al, byte [edx + 0x268]
test al, al
mov eax, 0x503660
jne 0x40e6b2
mov eax, 0x503658
push eax
push 0x5035bc
push ebx
call fcn.004bec26
mov eax, dword [ebp + 0x1e0]
add esp, 0xc
mov cl, byte [eax + 0x269]
mov eax, 0x503660
test cl, cl
jne 0x40e6db
mov eax, 0x503658
push eax
push 0x5035a8
push ebx
call fcn.004bec26
mov ecx, dword [ebp + 0x1e0]
add esp, 0xc
mov al, byte [ecx + 0x26a]
test al, al
mov eax, 0x503660
jne 0x40e704
mov eax, 0x503658
push eax
push 0x503594
push ebx
call fcn.004bec26
mov edx, dword [ebp + 0x1e0]
add esp, 0xc
mov al, byte [edx + 0x26b]
test al, al
mov eax, 0x503660
jne 0x40e72d
mov eax, 0x503658
push eax
push 0x503580
push ebx
call fcn.004bec26
mov eax, dword [ebp + 0x1e0]
add esp, 0xc
mov cl, byte [eax + 0x263]
mov eax, 0x503660
test cl, cl
jne 0x40e756
mov eax, 0x503658
push eax
push 0x503568
push ebx
call fcn.004bec26
mov ecx, dword [ebp + 0x1e0]
add esp, 0xc
mov al, byte [ecx + 0x264]
test al, al
mov eax, 0x503660
jne 0x40e77f
mov eax, 0x503658
push eax
push 0x503550
push ebx
call fcn.004bec26
mov edx, dword [ebp + 0x1e0]
add esp, 0xc
mov al, byte [edx + 0x266]
test al, al
mov eax, 0x503660
jne 0x40e7a8
mov eax, 0x503658
push eax
push 0x503538
push ebx
call fcn.004bec26
mov eax, dword [ebp + 0x1e0]
add esp, 0xc
mov cl, byte [eax + 0x265]
mov eax, 0x503660
test cl, cl
jne 0x40e7d1
mov eax, 0x503658
push eax
push 0x503514
push ebx
call fcn.004bec26
mov ecx, dword [ebp + 0x1e0]
add esp, 0xc
mov al, byte [ecx + 0x26c]
test al, al
mov eax, 0x503660
jne 0x40e7fa
mov eax, 0x503658
push eax
push 0x5034fc
push ebx
call fcn.004bec26
mov edx, dword [ebp + 0x1e0]
add esp, 0xc
mov al, byte [edx + 0x26d]
test al, al
mov eax, 0x503660
jne 0x40e823
mov eax, 0x503658
push eax
push 0x5034e0
push ebx
call fcn.004bec26
mov eax, dword [ebp + 0x1e0]
add esp, 0xc
mov cl, byte [eax + 0x26e]
mov eax, 0x503660
test cl, cl
jne 0x40e84c
mov eax, 0x503658
push eax
push 0x5034c4
push ebx
call fcn.004bec26
mov ecx, dword [ebp + 0x1e0]
add esp, 0xc
mov al, byte [ecx + 0x270]
test al, al
mov eax, 0x503660
jne 0x40e875
mov eax, 0x503658
push eax
push 0x5034a8
push ebx
call fcn.004bec26
mov edx, dword [ebp + 0x1e0]
add esp, 0xc
mov al, byte [edx + 0x26f]
test al, al
mov eax, 0x503660
jne 0x40e89e
mov eax, 0x503658
push eax
push 0x503490
push ebx
call fcn.004bec26
mov eax, dword [ebp + 0x1e0]
add esp, 0xc
mov cl, byte [eax + 0x271]
mov eax, 0x503660
test cl, cl
jne 0x40e8c7
mov eax, 0x503658
push eax
push 0x503470
push ebx
call fcn.004bec26
mov ecx, dword [ebp + 0x1e0]
add esp, 0xc
mov al, byte [ecx + 0x272]
test al, al
mov eax, 0x503660
jne 0x40e8f0
mov eax, 0x503658
push eax
push 0x503458
push ebx
call fcn.004bec26
mov edx, dword [ebp + 0x1e0]
add esp, 0xc
mov eax, dword [edx + 0xdc]
cmp eax, edi
jne 0x40e916
push 0x503444
jmp 0x40e92c
cmp eax, 1
jne 0x40e922
push 0x503434
jmp 0x40e92c
cmp eax, 2
jne 0x40e935
push 0x503420
push ebx
call fcn.004bec26
add esp, 8
push 0x5033dc
push ebx
call fcn.004bec26
add esp, 8
mov ecx, ebp
push ebx
call fcn.0040eba0
mov eax, dword [esp + 0x50]
pop ebx
cmp eax, edi
je 0x40e971
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x40e968
cmp al, 0xff
je 0x40e968
dec al
mov byte [ecx], al
jmp 0x40e971
push ecx
call fcn.004b124a
add esp, 4
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x4c], edi
cmp eax, edi
mov dword [esp + 0x50], edi
mov dword [esp + 0x54], edi
je 0x40e9a2
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x40e999
cmp al, 0xff
je 0x40e999
dec al
mov byte [ecx], al
jmp 0x40e9a2
push ecx
call fcn.004b124a
add esp, 4
mov eax, dword [esp + 0x20]
mov dword [esp + 0x5c], edi
cmp eax, edi
mov dword [esp + 0x60], edi
mov dword [esp + 0x64], edi
mov byte [esp + 0x90], 3
je 0x40e9df
mov ecx, dword [eax - 4]
lea esi, [eax - 4]
push fcn.004afb70
push ecx
push 0x10
push eax
call fcn.004bea5d
push esi
call fcn.004b124a
add esp, 4
mov dword [esp + 0x20], edi
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x24], edi
cmp eax, edi
mov dword [esp + 0x28], edi
je 0x40ea0c
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x40ea03
cmp al, 0xff
je 0x40ea03
dec al
mov byte [ecx], al
jmp 0x40ea0c
push ecx
call fcn.004b124a
add esp, 4
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x6c], edi
cmp eax, edi
mov dword [esp + 0x70], edi
mov dword [esp + 0x74], edi
mov byte [esp + 0x90], 0
je 0x40ea49
mov edx, dword [eax - 4]
lea esi, [eax - 4]
push fcn.004afb70
push edx
push 0x10
push eax
call fcn.004bea5d
push esi
call fcn.004b124a
add esp, 4
mov dword [esp + 0x2c], edi
lea ecx, [esp + 0x78]
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x90], 0xffffffff
call fcn.004a6da0
pop edi
pop esi
mov ecx, dword [esp + 0x80]
pop ebp
mov dword fs:[0], ecx
add esp, 0x88
ret 8