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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5a0eca
mov eax, dword fs:[0]
push eax
sub esp, 0xc8
mov eax, dword [0x621810]
xor eax, esp
mov dword [esp + 0xc0], eax
push ebx
push esi
push edi
mov eax, dword [0x621810]
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 0x40cffd
cmp byte [eax + 1], 0xbb
jne 0x40cffd
cmp byte [eax + 2], 0xbf
jne 0x40cffd
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.00455d30
mov dword [esp + 0xe0], esi
mov eax, dword [esp + 0x18]
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
call fcn.0040cbd4
cmp byte [eax], 0
mov dword [esp + 0x18], eax
je 0x40d544
lea ecx, [esp + 0x18]
push ecx
mov ecx, eax
lea esi, [esp + 0x40]
call fcn.0040e54a
test eax, eax
je 0x40d50b
mov eax, esi
lea ecx, [esp + 0x6c]
call fcn.0040cb14
test al, al
jne 0x40d50b
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.0040ca94
test al, al
je 0x40d0c0
mov byte [esp + 0x1f], 0
lea eax, [esp + 0xb4]
lea esi, [esp + 0x3c]
call fcn.0040e699
push eax
lea edi, [esp + 0x98]
mov byte [esp + 0xe4], 1
call fcn.00455e40
mov eax, edi
push eax
mov edx, 0x5fed70
lea ecx, [esp + 0x28]
mov byte [esp + 0xe4], 2
call fcn.00455200
mov ecx, eax
call fcn.00455700
mov ecx, edi
mov byte [esp + 0xe0], 1
call fcn.00455b60
push 1
xor edi, edi
lea esi, [esp + 0xb8]
mov byte [esp + 0xe4], 0
call fcn.00401ad5
jmp 0x40d184
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.0040cc96
add esp, 0x10
lea ecx, [esp + 0x24]
test al, al
je 0x40d50f
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 0x40d50b
mov eax, dword [esp + 0x18]
call fcn.0040cbd4
cmp byte [eax], 0x2d
mov dword [esp + 0x18], eax
je 0x40d12e
call fcn.0040cbd4
mov cl, byte [eax]
mov dword [esp + 0x18], eax
cmp cl, 0x41
jl 0x40d1ab
cmp cl, 0x5a
jle 0x40d1b3
sub cl, 0x61
cmp cl, 0x19
ja 0x40d21e
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esp + 0x20]
push ecx
call fcn.0040cd51
add esp, 0xc
test al, al
je 0x40d50b
lea eax, [ebx + 0x88]
cmp dword [eax + 0x14], 0x10
jb 0x40d1e0
mov eax, dword [eax]
mov ecx, dword [esp + 0x50]
sub ecx, dword [esp + 0x38]
push ecx
push eax
push dword [esp + 0x40]
call fcn.0048f3f4
add esp, 0xc
test eax, eax
je 0x40d290
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x1c]
call fcn.0040cd0b
pop ecx
test al, al
je 0x40d50b
mov eax, dword [esp + 0x18]
jmp 0x40d196
or dword [esp + 0xe0], 0xffffffff
lea ecx, [esp + 0x24]
call fcn.00455b60
xor esi, esi
jmp 0x40d02d
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.0040cc96
add esp, 0x10
lea ecx, [esp + 0x24]
test al, al
je 0x40d50f
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 0x40d50b
mov eax, dword [esp + 0x18]
call fcn.0040cbd4
cmp byte [eax], 0x2d
mov dword [esp + 0x18], eax
je 0x40d236
mov eax, dword [ebx]
lea ecx, [esp + 0x24]
push ecx
mov ecx, ebx
call dword [eax + 0x10]
test eax, eax
je 0x40d50b
cmp byte [esp + 0x1f], 0
je 0x40d2ef
push 0x6008f8
lea eax, [esp + 0x7c]
call fcn.004018af
lea eax, [esp + 0x78]
mov byte [esp + 0xe0], 3
or dword [esp + 0x14], 1
push eax
lea esi, [esp + 0x28]
call fcn.00455d00
mov byte [esp + 0x13], 1
test al, al
jne 0x40d2f4
mov byte [esp + 0x13], 0
and dword [esp + 0xe0], 0
test byte [esp + 0x14], 1
je 0x40d315
and dword [esp + 0x14], 0xfffffffe
push 1
xor edi, edi
lea esi, [esp + 0x7c]
call fcn.00401ad5
cmp byte [esp + 0x13], 0
je 0x40d368
and dword [esp + 0x5c], 0
and dword [esp + 0x60], 0
mov edx, 0x6008f8
lea ecx, [esp + 0x24]
call fcn.00455200
mov ecx, eax
call fcn.00455a30
cmp dword [eax + 0x14], 8
jb 0x40d343
mov eax, dword [eax]
mov ebx, eax
lea esi, [esp + 0x5c]
call fcn.0040e623
mov ecx, dword [esp + 0x20]
sub ecx, 0xffffff80
mov eax, esi
call fcn.0040347a
test al, al
jne 0x40d557
mov ebx, dword [esp + 0x20]
cmp dword [esp + 0x58], 0
jne 0x40d3b0
cmp byte [esp + 0x1f], 0
je 0x40d3b0
lea eax, [esp + 0x24]
push eax
lea ecx, [ebx + 8]
call fcn.00455760
mov edx, 0x600914
lea ecx, [esp + 0x24]
call fcn.00455200
mov ecx, eax
call fcn.004557d0
mov ecx, dword [eax]
or ecx, dword [eax + 4]
je 0x40d3a9
mov dword [esp + 0x58], 1
jmp 0x40d3bd
and dword [esp + 0x58], 0
jmp 0x40d3bd
lea eax, [esp + 0x24]
push eax
lea ecx, [ebx + 0x18]
call fcn.00455760
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, 0x600924
push edi
lea eax, [esp + 0x7c]
call fcn.004018af
lea eax, [esp + 0x78]
mov byte [esp + 0xe0], 4
or dword [esp + 0x14], 2
push eax
lea esi, [esp + 0x28]
call fcn.00455d00
test al, al
je 0x40d41c
mov edx, edi
mov ecx, esi
call fcn.00455200
mov ecx, eax
call fcn.004557d0
cmp dword [eax], 1
jne 0x40d41c
cmp dword [eax + 4], 0
mov byte [esp + 0x13], 1
je 0x40d421
mov byte [esp + 0x13], 0
and dword [esp + 0xe0], 0
test byte [esp + 0x14], 2
je 0x40d442
and dword [esp + 0x14], 0xfffffffd
push 1
xor edi, edi
lea esi, [esp + 0x7c]
call fcn.00401ad5
cmp byte [esp + 0x13], 0
je 0x40d47e
mov eax, 0x8000
test word [ebx + 0xbe], ax
je 0x40d46a
lea ecx, [ebx + 0xb8]
lea eax, [esp + 0x3c]
call fcn.0040347a
test al, al
je 0x40d47e
mov ecx, dword [esp + 0x3c]
mov dword [ebx + 0xb8], ecx
mov ecx, dword [esp + 0x40]
mov dword [ebx + 0xbc], ecx
push 0x60092c
lea eax, [esp + 0x7c]
call fcn.004018af
lea eax, [esp + 0x78]
push eax
lea esi, [esp + 0x28]
mov byte [esp + 0xe4], 5
call fcn.00455d00
push 1
xor edi, edi
lea esi, [esp + 0x7c]
mov byte [esp + 0x17], al
mov byte [esp + 0xe4], 0
call fcn.00401ad5
cmp byte [esp + 0x13], 0
je 0x40d4f4
mov edx, 0x60092c
lea ecx, [esp + 0x24]
call fcn.00455200
mov ecx, eax
call fcn.00455a30
cmp dword [eax + 0x14], 8
jb 0x40d4e1
mov edi, dword [eax]
jmp 0x40d4e3
mov edi, eax
push edi
call fcn.0048c5ca
pop ecx
lea esi, [ebx + 0x3c]
mov ecx, edi
call fcn.00401834
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x1c]
call fcn.0040cd92
pop ecx
test al, al
jne 0x40d21e
lea ecx, [esp + 0x24]
or dword [esp + 0xe0], 0xffffffff
call fcn.00455b60
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.0048b951
mov esp, ebp
pop ebp
ret 4
or dword [esp + 0xe0], 0xffffffff
lea ecx, [esp + 0x24]
call fcn.00455b60
jmp 0x40d56c
or dword [esp + 0xe0], 0xffffffff
lea ecx, [esp + 0x24]
call fcn.00455b60
mov ebx, dword [esp + 0x20]
cmp byte [ebx + 0x59], 0
jne 0x40d63b
jmp 0x40d615
mov eax, dword [ebx + 0x10]
mov eax, dword [eax + 4]
add eax, 0xfffffff0
push eax
lea ecx, [esp + 0x28]
call fcn.00456090
push 0x600940
lea eax, [esp + 0x7c]
mov dword [esp + 0xe4], 6
call fcn.004018af
lea eax, [esp + 0x78]
push eax
lea esi, [esp + 0x28]
mov byte [esp + 0xe4], 7
call fcn.00455d00
push 1
xor edi, edi
lea esi, [esp + 0x7c]
mov byte [esp + 0x17], al
mov byte [esp + 0xe4], 6
call fcn.00401ad5
cmp byte [esp + 0x13], 0
je 0x40d626
lea eax, [esp + 0x24]
push eax
lea ecx, [ebx + 0x60]
mov byte [ebx + 0x70], 1
call fcn.00455760
mov esi, dword [ebx + 0x10]
mov eax, dword [esi + 4]
cmp dword [esi], eax
je 0x40d604
lea ecx, [eax - 0x10]
call fcn.00455b60
add dword [esi + 4], 0xfffffff0
or dword [esp + 0xe0], 0xffffffff
lea ecx, [esp + 0x24]
call fcn.00455b60
mov ecx, ebx
call fcn.0040cb94
test eax, eax
je 0x40d57b
jmp 0x40d63b
or dword [esp + 0xe0], 0xffffffff
lea ecx, [esp + 0x24]
mov byte [ebx + 0x70], 0
call fcn.00455b60
cmp byte [ebx + 0xc8], 0
jne 0x40d90a
jmp 0x40d898
mov eax, dword [ebx + 0x10]
mov eax, dword [eax + 4]
add eax, 0xfffffff0
push eax
lea ecx, [esp + 0x28]
call fcn.00456090
mov edi, 0x60094c
push edi
lea eax, [esp + 0x7c]
mov dword [esp + 0xe4], 8
call fcn.004018af
lea eax, [esp + 0x78]
mov byte [esp + 0xe0], 9
or dword [esp + 0x14], 4
push eax
lea esi, [esp + 0x28]
call fcn.00455d00
test al, al
je 0x40d6b9
mov edx, edi
mov ecx, esi
call fcn.00455200
mov ecx, eax
call fcn.004557d0
cmp dword [eax], 1
jne 0x40d6b9
cmp dword [eax + 4], 0
mov byte [esp + 0x13], 1
je 0x40d6be
mov byte [esp + 0x13], 0
mov dword [esp + 0xe0], 8
test byte [esp + 0x14], 4
je 0x40d6e2
and dword [esp + 0x14], 0xfffffffb
push 1
xor edi, edi
lea esi, [esp + 0x7c]
call fcn.00401ad5
cmp byte [esp + 0x13], 0
je 0x40d8b0
cmp byte [ebx + 0xc9], 0
jne 0x40d7de
mov edx, 0x5fed70
lea ecx, [esp + 0x24]
call fcn.00455200
mov ecx, eax
call fcn.00455a30
cmp dword [eax + 0x14], 8
jb 0x40d717
mov eax, dword [eax]
lea esi, [ebx + 0xb0]
mov ebx, eax
call fcn.0040e623
push 0x600958
lea eax, [esp + 0xb8]
call fcn.004018af
lea eax, [esp + 0xb4]
mov byte [esp + 0xe0], 0xa
or dword [esp + 0x14], 8
push eax
lea esi, [esp + 0x28]
call fcn.00455d00
test al, al
jne 0x40d787
push 0x600968
lea eax, [esp + 0x7c]
call fcn.004018af
lea eax, [esp + 0x78]
mov dword [esp + 0xe0], 0xb
or dword [esp + 0x14], 0x10
push eax
call fcn.00455d00
test al, al
jne 0x40d787
xor bl, bl
jmp 0x40d789
mov bl, 1
test byte [esp + 0x14], 0x10
je 0x40d7a2
and dword [esp + 0x14], 0xffffffef
push 1
xor edi, edi
lea esi, [esp + 0x7c]
call fcn.00401ad5
mov dword [esp + 0xe0], 8
test byte [esp + 0x14], 8
je 0x40d7c9
and dword [esp + 0x14], 0xfffffff7
push 1
xor edi, edi
lea esi, [esp + 0xb8]
call fcn.00401ad5
mov eax, dword [esp + 0x20]
test bl, bl
jne 0x40d8a9
mov byte [eax + 0xc9], 1
mov ebx, eax
mov eax, 0x8000
test word [ebx + 0xd6], ax
je 0x40d871
mov edx, 0x5fed70
lea ecx, [esp + 0x24]
call fcn.00455200
mov ecx, eax
call fcn.00455a30
push eax
lea esi, [esp + 0x98]
call fcn.004024df
and dword [esp + 0x5c], 0
and dword [esp + 0x60], 0
cmp dword [esp + 0xa8], 8
mov ebx, dword [esp + 0x94]
jae 0x40d82f
mov ebx, esi
lea esi, [esp + 0x5c]
call fcn.0040e623
test eax, eax
je 0x40d855
mov ecx, dword [esp + 0x20]
add ecx, 0xd0
mov eax, esi
call fcn.0040cb14
test al, al
jne 0x40d912
push 1
xor edi, edi
lea esi, [esp + 0x98]
mov byte [esp + 0xe4], 8
call fcn.00401ad5
mov ebx, dword [esp + 0x20]
mov esi, dword [ebx + 0x10]
mov eax, dword [esi + 4]
cmp dword [esi], eax
je 0x40d887
lea ecx, [eax - 0x10]
call fcn.00455b60
add dword [esi + 4], 0xfffffff0
or dword [esp + 0xe0], 0xffffffff
lea ecx, [esp + 0x24]
call fcn.00455b60
mov ecx, ebx
call fcn.0040cb94
test eax, eax
je 0x40d64d
jmp 0x40d8ed
mov byte [eax + 0xca], 1
mov edx, 0x5fed70
lea ecx, [esp + 0x24]
call fcn.00455200
mov ecx, eax
call fcn.00455a30
cmp dword [eax + 0x14], 8
jb 0x40d8cd
mov eax, dword [eax]
mov esi, dword [esp + 0x48]
mov ebx, eax
call fcn.0040e623
or dword [esp + 0xe0], 0xffffffff
lea ecx, [esp + 0x24]
call fcn.00455b60
mov ebx, dword [esp + 0x20]
mov ecx, ebx
call fcn.0040cb94
test eax, eax
je 0x40d90a
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 0x40d51e
cmp dword [esp + 0xa8], 8
mov ebx, dword [esp + 0x94]
jae 0x40d92a
lea ebx, [esp + 0x94]
mov esi, dword [esp + 0x48]
call fcn.0040e623
push 1
xor edi, edi
lea esi, [esp + 0x98]
call fcn.00401ad5
jmp 0x40d8d8