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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x59f032
mov eax, dword fs:[0]
push eax
sub esp, 0xc8
mov eax, dword [0x61e810]
xor eax, esp
mov dword [esp + 0xc0], eax
push ebx
push esi
push edi
mov eax, dword [0x61e810]
xor eax, esp
push eax
lea eax, [esp + 0xd8]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor esi, esi
mov ebx, ecx
mov dword [esp + 0x14], esi
cmp byte [eax], 0xef
mov dword [esp + 0x20], ebx
jne 0x40ded0
cmp byte [eax + 1], 0xbb
jne 0x40ded0
cmp byte [eax + 2], 0xbf
jne 0x40ded0
add eax, 3
mov dword [esp + 0x18], eax
mov eax, dword [ebx]
call dword [eax + 4]
lea ecx, [ebx + 0x78]
mov edx, dword [ecx]
lea eax, [ebx + 0xa8]
mov dword [esp + 0x68], ecx
mov dword [eax], edx
mov ecx, dword [ecx + 4]
mov dword [esp + 0x48], eax
mov dword [eax + 4], ecx
mov dword [esp + 0x6c], esi
mov dword [esp + 0x70], esi
mov dword [esp + 0x58], esi
push esi
lea edi, [esp + 0x28]
mov dword [esp + 0x28], esi
call fcn.00456600
mov dword [esp + 0xe0], esi
mov eax, dword [esp + 0x18]
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
call fcn.0040daa7
cmp byte [eax], 0
mov dword [esp + 0x18], eax
je 0x40e404
lea ecx, [esp + 0x18]
push ecx
mov ecx, eax
lea esi, [esp + 0x40]
call fcn.0040f407
test eax, eax
je 0x40e3cb
mov eax, esi
lea ecx, [esp + 0x6c]
call fcn.0040d9e7
test al, al
jne 0x40e3cb
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x68]
mov dword [esp + 0x6c], ecx
mov dword [ebx + 0xc0], ecx
mov ecx, esi
mov dword [esp + 0x70], edx
mov dword [ebx + 0xc4], edx
mov byte [esp + 0x1f], 1
call fcn.0040d967
test al, al
je 0x40df93
mov byte [esp + 0x1f], 0
lea eax, [esp + 0xb4]
lea esi, [esp + 0x3c]
call fcn.0040f556
push eax
lea edi, [esp + 0x98]
mov byte [esp + 0xe4], 1
call fcn.00456710
mov edx, 0x5fcc78
lea ecx, [esp + 0x24]
mov byte [esp + 0xe0], 2
call fcn.00455b40
mov esi, eax
mov eax, edi
call fcn.00455fd0
mov ecx, edi
mov byte [esp + 0xe0], 1
call fcn.00456430
push 1
xor edi, edi
lea esi, [esp + 0xb8]
mov byte [esp + 0xe4], 0
call fcn.004019e2
jmp 0x40e056
lea ecx, [esp + 0x54]
push ecx
lea ecx, [esp + 0x54]
push ecx
lea ecx, [esp + 0x40]
push ecx
lea ecx, [esp + 0x24]
push ecx
lea edi, [esp + 0x5c]
call fcn.0040db69
add esp, 0x10
lea ecx, [esp + 0x24]
test al, al
je 0x40e3cf
mov eax, dword [ebx]
push ecx
mov ecx, dword [esp + 0x58]
sub ecx, dword [esp + 0x50]
push ecx
push dword [esp + 0x54]
mov ecx, dword [esp + 0x5c]
sub ecx, dword [esp + 0x44]
push ecx
push dword [esp + 0x48]
mov ecx, ebx
call dword [eax + 0xc]
test eax, eax
je 0x40e3cb
mov eax, dword [esp + 0x18]
call fcn.0040daa7
cmp byte [eax], 0x2d
mov dword [esp + 0x18], eax
je 0x40e000
call fcn.0040daa7
mov cl, byte [eax]
mov dword [esp + 0x18], eax
cmp cl, 0x41
jl 0x40e07d
cmp cl, 0x5a
jle 0x40e085
sub cl, 0x61
cmp cl, 0x19
ja 0x40e0f0
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esp + 0x20]
push ecx
call fcn.0040dc24
add esp, 0xc
test al, al
je 0x40e3cb
lea eax, [ebx + 0x88]
cmp dword [eax + 0x14], 0x10
jb 0x40e0b2
mov eax, dword [eax]
mov ecx, dword [esp + 0x50]
sub ecx, dword [esp + 0x38]
push ecx
push eax
push dword [esp + 0x40]
call fcn.0048d873
add esp, 0xc
test eax, eax
je 0x40e162
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x1c]
call fcn.0040dbde
pop ecx
test al, al
je 0x40e3cb
mov eax, dword [esp + 0x18]
jmp 0x40e068
or dword [esp + 0xe0], 0xffffffff
lea ecx, [esp + 0x24]
call fcn.00456430
xor esi, esi
jmp 0x40df00
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x24]
push eax
mov eax, dword [esp + 0x28]
lea edi, [esp + 0x5c]
call fcn.0040db69
add esp, 0x10
lea ecx, [esp + 0x24]
test al, al
je 0x40e3cf
mov eax, dword [ebx]
push ecx
mov ecx, dword [esp + 0x58]
sub ecx, dword [esp + 0x50]
push ecx
push dword [esp + 0x54]
mov ecx, dword [esp + 0x5c]
sub ecx, dword [esp + 0x44]
push ecx
push dword [esp + 0x48]
mov ecx, ebx
call dword [eax + 0xc]
test eax, eax
je 0x40e3cb
mov eax, dword [esp + 0x18]
call fcn.0040daa7
cmp byte [eax], 0x2d
mov dword [esp + 0x18], eax
je 0x40e108
mov eax, dword [ebx]
lea ecx, [esp + 0x24]
push ecx
mov ecx, ebx
call dword [eax + 0x10]
test eax, eax
je 0x40e3cb
cmp byte [esp + 0x1f], 0
je 0x40e1c1
push 0x5feb2c
lea eax, [esp + 0x7c]
call fcn.004017bc
lea eax, [esp + 0x78]
mov byte [esp + 0xe0], 3
or dword [esp + 0x14], 1
push eax
lea esi, [esp + 0x28]
call fcn.004565d0
mov byte [esp + 0x13], 1
test al, al
jne 0x40e1c6
mov byte [esp + 0x13], 0
and dword [esp + 0xe0], 0
test byte [esp + 0x14], 1
je 0x40e1e7
and dword [esp + 0x14], 0xfffffffe
push 1
xor edi, edi
lea esi, [esp + 0x7c]
call fcn.004019e2
cmp byte [esp + 0x13], 0
je 0x40e232
and dword [esp + 0x5c], 0
and dword [esp + 0x60], 0
mov edx, 0x5feb2c
lea ecx, [esp + 0x24]
call fcn.00455b40
mov ecx, eax
call fcn.00456020
mov ebx, eax
lea esi, [esp + 0x5c]
call fcn.0040f4e0
mov ecx, dword [esp + 0x20]
sub ecx, 0xffffff80
mov eax, esi
call fcn.00403395
test al, al
jne 0x40e417
mov ebx, dword [esp + 0x20]
cmp dword [esp + 0x58], 0
jne 0x40e27a
cmp byte [esp + 0x1f], 0
je 0x40e27a
lea eax, [esp + 0x24]
push eax
lea ecx, [ebx + 8]
call fcn.00456030
mov edx, 0x5feb48
lea ecx, [esp + 0x24]
call fcn.00455b40
mov ecx, eax
call fcn.004560a0
mov ecx, dword [eax]
or ecx, dword [eax + 4]
je 0x40e273
mov dword [esp + 0x58], 1
jmp 0x40e287
and dword [esp + 0x58], 0
jmp 0x40e287
lea eax, [esp + 0x24]
push eax
lea ecx, [ebx + 0x18]
call fcn.00456030
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x3c]
mov dword [eax], ecx
mov ecx, dword [esp + 0x40]
mov dword [eax + 4], ecx
mov edi, 0x5feb58
push edi
lea eax, [esp + 0x7c]
call fcn.004017bc
lea eax, [esp + 0x78]
mov byte [esp + 0xe0], 4
or dword [esp + 0x14], 2
push eax
lea esi, [esp + 0x28]
call fcn.004565d0
test al, al
je 0x40e2e6
mov edx, edi
mov ecx, esi
call fcn.00455b40
mov ecx, eax
call fcn.004560a0
cmp dword [eax], 1
jne 0x40e2e6
cmp dword [eax + 4], 0
mov byte [esp + 0x13], 1
je 0x40e2eb
mov byte [esp + 0x13], 0
and dword [esp + 0xe0], 0
test byte [esp + 0x14], 2
je 0x40e30c
and dword [esp + 0x14], 0xfffffffd
push 1
xor edi, edi
lea esi, [esp + 0x7c]
call fcn.004019e2
cmp byte [esp + 0x13], 0
je 0x40e348
mov eax, 0x8000
test word [ebx + 0xbe], ax
je 0x40e334
lea ecx, [ebx + 0xb8]
lea eax, [esp + 0x3c]
call fcn.00403395
test al, al
je 0x40e348
mov ecx, dword [esp + 0x3c]
mov dword [ebx + 0xb8], ecx
mov ecx, dword [esp + 0x40]
mov dword [ebx + 0xbc], ecx
push 0x5feb60
lea eax, [esp + 0x7c]
call fcn.004017bc
lea eax, [esp + 0x78]
push eax
lea esi, [esp + 0x28]
mov byte [esp + 0xe4], 5
call fcn.004565d0
push 1
xor edi, edi
lea esi, [esp + 0x7c]
mov byte [esp + 0x17], al
mov byte [esp + 0xe4], 0
call fcn.004019e2
cmp byte [esp + 0x13], 0
je 0x40e3b4
mov edx, 0x5feb60
lea ecx, [esp + 0x24]
call fcn.00455b40
mov ecx, eax
call fcn.00456020
mov edi, eax
push edi
call fcn.0048aa3a
pop ecx
lea esi, [ebx + 0x3c]
mov ecx, edi
call fcn.00401741
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x1c]
call fcn.0040dc65
pop ecx
test al, al
jne 0x40e0f0
lea ecx, [esp + 0x24]
or dword [esp + 0xe0], 0xffffffff
call fcn.00456430
xor eax, eax
mov ecx, dword [esp + 0xd8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc0]
xor ecx, esp
call fcn.00489dc1
mov esp, ebp
pop ebp
ret 4
or dword [esp + 0xe0], 0xffffffff
lea ecx, [esp + 0x24]
call fcn.00456430
jmp 0x40e42c
or dword [esp + 0xe0], 0xffffffff
lea ecx, [esp + 0x24]
call fcn.00456430
mov ebx, dword [esp + 0x20]
cmp byte [ebx + 0x59], 0
jne 0x40e4fb
jmp 0x40e4d5
mov eax, dword [ebx + 0x10]
mov eax, dword [eax + 4]
add eax, 0xfffffff0
push eax
lea ecx, [esp + 0x28]
call fcn.00456960
push 0x5feb74
lea eax, [esp + 0x7c]
mov dword [esp + 0xe4], 6
call fcn.004017bc
lea eax, [esp + 0x78]
push eax
lea esi, [esp + 0x28]
mov byte [esp + 0xe4], 7
call fcn.004565d0
push 1
xor edi, edi
lea esi, [esp + 0x7c]
mov byte [esp + 0x17], al
mov byte [esp + 0xe4], 6
call fcn.004019e2
cmp byte [esp + 0x13], 0
je 0x40e4e6
lea eax, [esp + 0x24]
push eax
lea ecx, [ebx + 0x60]
mov byte [ebx + 0x70], 1
call fcn.00456030
mov esi, dword [ebx + 0x10]
mov eax, dword [esi + 4]
cmp dword [esi], eax
je 0x40e4c4
lea ecx, [eax - 0x10]
call fcn.00456430
add dword [esi + 4], 0xfffffff0
or dword [esp + 0xe0], 0xffffffff
lea ecx, [esp + 0x24]
call fcn.00456430
mov ecx, ebx
call fcn.0040da67
test eax, eax
je 0x40e43b
jmp 0x40e4fb
or dword [esp + 0xe0], 0xffffffff
lea ecx, [esp + 0x24]
mov byte [ebx + 0x70], 0
call fcn.00456430
cmp byte [ebx + 0xc8], 0
jne 0x40e7ca
jmp 0x40e758
mov eax, dword [ebx + 0x10]
mov eax, dword [eax + 4]
add eax, 0xfffffff0
push eax
lea ecx, [esp + 0x28]
call fcn.00456960
mov edi, 0x5feb80
push edi
lea eax, [esp + 0x7c]
mov dword [esp + 0xe4], 8
call fcn.004017bc
lea eax, [esp + 0x78]
mov byte [esp + 0xe0], 9
or dword [esp + 0x14], 4
push eax
lea esi, [esp + 0x28]
call fcn.004565d0
test al, al
je 0x40e579
mov edx, edi
mov ecx, esi
call fcn.00455b40
mov ecx, eax
call fcn.004560a0
cmp dword [eax], 1
jne 0x40e579
cmp dword [eax + 4], 0
mov byte [esp + 0x13], 1
je 0x40e57e
mov byte [esp + 0x13], 0
mov dword [esp + 0xe0], 8
test byte [esp + 0x14], 4
je 0x40e5a2
and dword [esp + 0x14], 0xfffffffb
push 1
xor edi, edi
lea esi, [esp + 0x7c]
call fcn.004019e2
cmp byte [esp + 0x13], 0
je 0x40e770
cmp byte [ebx + 0xc9], 0
jne 0x40e69e
mov edx, 0x5fcc78
lea ecx, [esp + 0x24]
call fcn.00455b40
mov ecx, eax
call fcn.00456300
cmp dword [eax + 0x14], 8
jb 0x40e5d7
mov eax, dword [eax]
lea esi, [ebx + 0xb0]
mov ebx, eax
call fcn.0040f4e0
push 0x5feb8c
lea eax, [esp + 0xb8]
call fcn.004017bc
lea eax, [esp + 0xb4]
mov byte [esp + 0xe0], 0xa
or dword [esp + 0x14], 8
push eax
lea esi, [esp + 0x28]
call fcn.004565d0
test al, al
jne 0x40e647
push 0x5feb9c
lea eax, [esp + 0x7c]
call fcn.004017bc
lea eax, [esp + 0x78]
mov dword [esp + 0xe0], 0xb
or dword [esp + 0x14], 0x10
push eax
call fcn.004565d0
test al, al
jne 0x40e647
xor bl, bl
jmp 0x40e649
mov bl, 1
test byte [esp + 0x14], 0x10
je 0x40e662
and dword [esp + 0x14], 0xffffffef
push 1
xor edi, edi
lea esi, [esp + 0x7c]
call fcn.004019e2
mov dword [esp + 0xe0], 8
test byte [esp + 0x14], 8
je 0x40e689
and dword [esp + 0x14], 0xfffffff7
push 1
xor edi, edi
lea esi, [esp + 0xb8]
call fcn.004019e2
mov eax, dword [esp + 0x20]
test bl, bl
jne 0x40e769
mov byte [eax + 0xc9], 1
mov ebx, eax
mov eax, 0x8000
test word [ebx + 0xd6], ax
je 0x40e731
mov edx, 0x5fcc78
lea ecx, [esp + 0x24]
call fcn.00455b40
mov ecx, eax
call fcn.00456300
push eax
lea esi, [esp + 0x98]
call fcn.004023ec
and dword [esp + 0x5c], 0
and dword [esp + 0x60], 0
cmp dword [esp + 0xa8], 8
mov ebx, dword [esp + 0x94]
jae 0x40e6ef
mov ebx, esi
lea esi, [esp + 0x5c]
call fcn.0040f4e0
test eax, eax
je 0x40e715
mov ecx, dword [esp + 0x20]
add ecx, 0xd0
mov eax, esi
call fcn.0040d9e7
test al, al
jne 0x40e7d2
push 1
xor edi, edi
lea esi, [esp + 0x98]
mov byte [esp + 0xe4], 8
call fcn.004019e2
mov ebx, dword [esp + 0x20]
mov esi, dword [ebx + 0x10]
mov eax, dword [esi + 4]
cmp dword [esi], eax
je 0x40e747
lea ecx, [eax - 0x10]
call fcn.00456430
add dword [esi + 4], 0xfffffff0
or dword [esp + 0xe0], 0xffffffff
lea ecx, [esp + 0x24]
call fcn.00456430
mov ecx, ebx
call fcn.0040da67
test eax, eax
je 0x40e50d
jmp 0x40e7ad
mov byte [eax + 0xca], 1
mov edx, 0x5fcc78
lea ecx, [esp + 0x24]
call fcn.00455b40
mov ecx, eax
call fcn.00456300
cmp dword [eax + 0x14], 8
jb 0x40e78d
mov eax, dword [eax]
mov esi, dword [esp + 0x48]
mov ebx, eax
call fcn.0040f4e0
or dword [esp + 0xe0], 0xffffffff
lea ecx, [esp + 0x24]
call fcn.00456430
mov ebx, dword [esp + 0x20]
mov ecx, ebx
call fcn.0040da67
test eax, eax
je 0x40e7ca
mov ecx, dword [esp + 0x68]
mov edx, dword [ecx]
mov eax, dword [esp + 0x48]
mov dword [eax], edx
mov ecx, dword [ecx + 4]
mov dword [eax + 4], ecx
xor eax, eax
inc eax
jmp 0x40e3de
cmp dword [esp + 0xa8], 8
mov ebx, dword [esp + 0x94]
jae 0x40e7ea
lea ebx, [esp + 0x94]
mov esi, dword [esp + 0x48]
call fcn.0040f4e0
push 1
xor edi, edi
lea esi, [esp + 0x98]
call fcn.004019e2
jmp 0x40e798