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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x431c3d
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
push ebx
push esi
push edi
mov eax, dword [0x43e054]
xor eax, esp
push eax
lea eax, [esp + 0xe0]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, dword [ebp + 0x10]
xor eax, eax
mov word [ebx], ax
mov eax, dword [ebp + 0xc]
cmp eax, 0xb
ja case.default.0x40ec0e
jmp dword [eax*4 + 0x40f7da]
push dword [esi + 0xc]
push dword [esi + 8]
push 0x43879c
mov ecx, dword [ebp + 0x14]
mov edi, ebx
call fcn.0040500e
add esp, 0xc
mov eax, ebx
jmp 0x40f7bf
mov esi, dword [esi + 0x5c]
test esi, esi
jmp 0x40f7b7
mov eax, dword [esi + 0x18]
mov esi, dword [esi + 0x1c]
mov ecx, eax
or ecx, esi
je 0x40ec2d
push esi
push eax
lea eax, [esp + 0x5c]
push eax
call fcn.0040b791
mov eax, dword [eax]
add esp, 0xc
test eax, eax
je 0x40ec63
mov eax, dword [eax]
jmp 0x40ec65
xor eax, eax
push eax
push dword [ebp + 0x14]
push ebx
call fcn.00417e21
lea edi, [esp + 0x60]
add esp, 0xc
call fcn.0040174e
jmp 0x40ec2d
cmp dword [esi + 0x10], 0x2000
je 0x40ec2d
mov eax, dword [esi + 0x20]
mov esi, dword [esi + 0x24]
mov ecx, eax
or ecx, esi
je 0x40ec2d
push esi
push eax
lea eax, [esp + 0xd4]
push eax
call fcn.0040b791
mov eax, dword [eax]
add esp, 0xc
test eax, eax
je 0x40ecae
mov eax, dword [eax]
jmp 0x40ecb0
xor eax, eax
push eax
push dword [ebp + 0x14]
push ebx
call fcn.00417e21
lea edi, [esp + 0xd8]
jmp 0x40ec73
cmp dword [esi + 0x10], 0x2000
je 0x40ec2d
mov eax, dword [esi + 0x28]
mov esi, dword [esi + 0x2c]
mov ecx, eax
or ecx, esi
je 0x40ec2d
push esi
push eax
lea eax, [esp + 0x34]
push eax
call fcn.0040b791
mov eax, dword [eax]
add esp, 0xc
test eax, eax
je 0x40ecf9
mov eax, dword [eax]
jmp 0x40ecfb
xor eax, eax
push eax
push dword [ebp + 0x14]
push ebx
call fcn.00417e21
lea edi, [esp + 0x38]
jmp 0x40ec73
cmp dword [esi + 0x10], 0x2000
je 0x40ec2d
mov eax, dword [esi + 0x38]
add eax, dword [esi + 0x30]
mov ecx, dword [esi + 0x3c]
adc ecx, dword [esi + 0x34]
mov edx, eax
or edx, ecx
je 0x40ec2d
push ecx
push eax
lea eax, [esp + 0x8c]
push eax
call fcn.0040b791
mov eax, dword [eax]
add esp, 0xc
test eax, eax
je 0x40ed4d
mov eax, dword [eax]
jmp 0x40ed4f
xor eax, eax
push eax
push dword [ebp + 0x14]
push ebx
call fcn.00417e21
lea edi, [esp + 0x90]
jmp 0x40ec73
cmp dword [esi + 0x10], 0x2000
je 0x40ec2d
mov eax, dword [esi + 0x30]
mov esi, dword [esi + 0x34]
mov ecx, eax
or ecx, esi
je 0x40ec2d
push esi
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.0040b791
mov eax, dword [eax]
add esp, 0xc
test eax, eax
je 0x40ed9b
mov eax, dword [eax]
jmp 0x40ed9d
xor eax, eax
push eax
push dword [ebp + 0x14]
push ebx
call fcn.00417e21
lea edi, [esp + 0x40]
jmp 0x40ec73
cmp dword [esi + 0x10], 0x2000
je 0x40ec2d
mov eax, dword [esi + 0x38]
mov esi, dword [esi + 0x3c]
mov ecx, eax
or ecx, esi
je 0x40ec2d
push esi
push eax
lea eax, [esp + 0xcc]
push eax
call fcn.0040b791
mov eax, dword [eax]
add esp, 0xc
test eax, eax
je 0x40ede9
mov eax, dword [eax]
jmp 0x40edeb
xor eax, eax
push eax
push dword [ebp + 0x14]
push ebx
call fcn.00417e21
lea edi, [esp + 0xd0]
jmp 0x40ec73
cmp dword [esi + 0x10], 0x2000
je 0x40ec2d
mov eax, dword [esi + 0x40]
mov esi, dword [esi + 0x44]
mov ecx, eax
or ecx, esi
je 0x40ec2d
push esi
push eax
lea eax, [esp + 0x44]
push eax
call fcn.0040b791
mov eax, dword [eax]
add esp, 0xc
test eax, eax
je 0x40ee37
mov eax, dword [eax]
jmp 0x40ee39
xor eax, eax
push eax
push dword [ebp + 0x14]
push ebx
call fcn.00417e21
lea edi, [esp + 0x48]
jmp 0x40ec73
mov eax, dword [esi + 0x48]
mov esi, dword [esi + 0x4c]
mov ecx, eax
or ecx, esi
je 0x40ec2d
push esi
push eax
push 0x438af0
jmp 0x40ec20
and dword [esp + 0x1c], 0
and dword [esp + 0xe8], 0
cmp dword [esi + 0x54], 6
jne 0x40ee82
push 0x4358ec
jmp 0x40eea0
mov eax, dword [esi + 0x28]
or eax, dword [esi + 0x2c]
jne 0x40eeab
mov eax, dword [esi + 0x10]
cmp eax, 0x1000000
je 0x40eeab
cmp eax, 0x40000
je 0x40eeab
push 0x438f38
lea ecx, [esp + 0x20]
call fcn.00401622
jmp 0x40eed4
push dword [esi + 0x50]
lea eax, [esp + 0x90]
push eax
call fcn.0040cb90
pop ecx
mov esi, eax
pop ecx
lea eax, [esp + 0x1c]
call fcn.00401600
lea edi, [esp + 0x8c]
call fcn.0040174e
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x40eee0
mov eax, dword [eax]
jmp 0x40eee2
xor eax, eax
push eax
push dword [ebp + 0x14]
push ebx
call fcn.00417e21
lea edi, [esp + 0x28]
jmp 0x40ec73
mov eax, dword [esi + 0x54]
xor edx, edx
inc edx
cmp eax, edx
jne 0x40ef27
mov eax, dword [esi + 0x48]
or eax, dword [esi + 0x4c]
je 0x40ec2d
mov esi, dword [esi + 0x58]
mov ecx, dword [ebp + 0x14]
mov edi, ebx
cmp esi, 0xffffffff
jne 0x40ef1f
push 0x439280
jmp 0x40ef3c
push esi
push 0x4392a8
jmp 0x40ef5b
cmp eax, 4
jne 0x40ef67
cmp dword [esi + 0x58], 0xfffffffe
jne 0x40ef43
mov ecx, dword [ebp + 0x14]
push 0x4392c4
mov edi, ebx
call fcn.0040500e
jmp 0x40ef61
cmp eax, 4
jne 0x40ef67
mov ecx, dword [esi + 0x58]
cmp ecx, 0xffffffff
je 0x40ef67
push ecx
mov ecx, dword [ebp + 0x14]
push 0x4392f8
mov edi, ebx
call fcn.0040500e
pop ecx
pop ecx
jmp 0x40ec2d
xor ecx, ecx
cmp eax, ecx
jne 0x40f7b2
mov dword [esp + 0x18], ecx
mov dword [esp + 0xe8], edx
movzx eax, word [esi + 0x5a]
mov dword [esp + 0x1c], eax
cmp dword [0x440ccc], ecx
je 0x40f010
sub eax, ecx
je 0x40efeb
dec eax
je 0x40efc3
dec eax
jne 0x40f733
push 0x439368
lea edi, [esp + 0x48]
call fcn.004015ab
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0xec], 4
call fcn.0040168b
jmp 0x40f72e
push 0x439354
lea edi, [esp + 0xb8]
call fcn.004015ab
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0xec], 3
call fcn.0040168b
jmp 0x40f72e
push 0x439338
lea edi, [esp + 0x50]
call fcn.004015ab
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0xec], 2
call fcn.0040168b
jmp 0x40f72e
test al, 1
je 0x40f044
push 0x43938c
lea edi, [esp + 0x98]
call fcn.004015ab
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0xec], 5
call fcn.0040168b
mov byte [esp + 0xe8], 1
call fcn.0040174e
test byte [esp + 0x1c], 2
mov ebx, 0x4358ec
je 0x40f0ec
lea eax, [esp + 0x18]
call fcn.00401737
mov dword [esp + 0x14], 0x4393a8
test eax, eax
jne 0x40f06d
mov dword [esp + 0x14], ebx
push 0x4393ac
lea edi, [esp + 0xa0]
call fcn.004015ab
mov dword [esp + 0x20], eax
push dword [esp + 0x14]
lea edi, [esp + 0x60]
mov byte [esp + 0xec], 6
call fcn.004015ab
push dword [esp + 0x20]
lea ecx, [esp + 0xd8]
push ecx
push eax
mov byte [esp + 0xf4], 7
call fcn.004016e0
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0xec], 8
call fcn.0040168b
lea edi, [esp + 0xd4]
call fcn.0040174e
lea edi, [esp + 0x5c]
call fcn.0040174e
lea edi, [esp + 0x9c]
mov byte [esp + 0xe8], 1
call fcn.0040174e
test byte [esp + 0x1c], 4
je 0x40f189
lea eax, [esp + 0x18]
call fcn.00401737
mov dword [esp + 0x14], 0x4393a8
test eax, eax
jne 0x40f110
mov dword [esp + 0x14], ebx
push 0x4393c0
lea edi, [esp + 0x70]
call fcn.004015ab
mov ebx, eax
push dword [esp + 0x14]
lea edi, [esp + 0xc0]
mov byte [esp + 0xec], 9
call fcn.004015ab
push ebx
lea ecx, [esp + 0x68]
push ecx
push eax
mov byte [esp + 0xf4], 0xa
call fcn.004016e0
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0xec], 0xb
call fcn.0040168b
lea edi, [esp + 0x64]
call fcn.0040174e
lea edi, [esp + 0xbc]
call fcn.0040174e
lea edi, [esp + 0x6c]
mov byte [esp + 0xe8], 1
call fcn.0040174e
mov ebx, 0x4358ec
test byte [esp + 0x1c], 8
je 0x40f226
lea eax, [esp + 0x18]
call fcn.00401737
mov dword [esp + 0x14], 0x4393a8
test eax, eax
jne 0x40f1ad
mov dword [esp + 0x14], ebx
push 0x4393e8
lea edi, [esp + 0x28]
call fcn.004015ab
mov dword [esp + 0x20], eax
push dword [esp + 0x14]
lea edi, [esp + 0x78]
mov byte [esp + 0xec], 0xc
call fcn.004015ab
push dword [esp + 0x20]
lea ecx, [esp + 0xa8]
push ecx
push eax
mov byte [esp + 0xf4], 0xd
call fcn.004016e0
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0xec], 0xe
call fcn.0040168b
lea edi, [esp + 0xa4]
call fcn.0040174e
lea edi, [esp + 0x74]
call fcn.0040174e
lea edi, [esp + 0x24]
mov byte [esp + 0xe8], 1
call fcn.0040174e
test byte [esp + 0x1c], 0x10
je 0x40f2c6
lea eax, [esp + 0x18]
call fcn.00401737
mov dword [esp + 0x14], 0x4393a8
test eax, eax
jne 0x40f24a
mov dword [esp + 0x14], ebx
push 0x439400
lea edi, [esp + 0x2c]
call fcn.004015ab
mov ebx, eax
push dword [esp + 0x14]
lea edi, [esp + 0xb0]
mov byte [esp + 0xec], 0xf
call fcn.004015ab
push ebx
lea ecx, [esp + 0x80]
push ecx
push eax
mov byte [esp + 0xf4], 0x10
call fcn.004016e0
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0xec], 0x11
call fcn.0040168b
lea edi, [esp + 0x7c]
call fcn.0040174e
lea edi, [esp + 0xac]
call fcn.0040174e
lea edi, [esp + 0x28]
mov byte [esp + 0xe8], 1
call fcn.0040174e
mov ebx, 0x4358ec
test byte [esp + 0x1c], 0x20
je 0x40f35d
lea eax, [esp + 0x18]
call fcn.00401737
mov dword [esp + 0x14], 0x4393a8
test eax, eax
jne 0x40f2ea
mov dword [esp + 0x14], ebx
push 0x43942c
lea edi, [esp + 0x44]
call fcn.004015ab
mov dword [esp + 0x20], eax
push dword [esp + 0x14]
lea edi, [esp + 0x3c]
mov byte [esp + 0xec], 0x12
call fcn.004015ab
push dword [esp + 0x20]
lea ecx, [esp + 0x34]
push ecx
push eax
mov byte [esp + 0xf4], 0x13
call fcn.004016e0
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0xec], 0x14
call fcn.0040168b
lea edi, [esp + 0x30]
call fcn.0040174e
lea edi, [esp + 0x38]
call fcn.0040174e
lea edi, [esp + 0x40]
mov byte [esp + 0xe8], 1
call fcn.0040174e
test byte [esp + 0x1c], 0x40
je 0x40f3f4
lea eax, [esp + 0x18]
call fcn.00401737
mov dword [esp + 0x14], 0x4393a8
test eax, eax
jne 0x40f381
mov dword [esp + 0x14], ebx
push 0x439458
lea edi, [esp + 0x5c]
call fcn.004015ab
mov dword [esp + 0x20], eax
push dword [esp + 0x14]
lea edi, [esp + 0x54]
mov byte [esp + 0xec], 0x15
call fcn.004015ab
push dword [esp + 0x20]
lea ecx, [esp + 0x4c]
push ecx
push eax
mov byte [esp + 0xf4], 0x16
call fcn.004016e0
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0xec], 0x17
call fcn.0040168b
lea edi, [esp + 0x48]
call fcn.0040174e
lea edi, [esp + 0x50]
call fcn.0040174e
lea edi, [esp + 0x58]
mov byte [esp + 0xe8], 1
call fcn.0040174e
mov eax, dword [esp + 0x1c]
and eax, 0x80
mov dword [esp + 0xc0], eax
je 0x40f496
lea eax, [esp + 0x18]
call fcn.00401737
mov dword [esp + 0x14], 0x4393a8
test eax, eax
jne 0x40f423
mov dword [esp + 0x14], ebx
push 0x439484
lea edi, [esp + 0x74]
call fcn.004015ab
mov ebx, eax
push dword [esp + 0x14]
lea edi, [esp + 0x6c]
mov byte [esp + 0xec], 0x18
call fcn.004015ab
push ebx
lea ecx, [esp + 0x64]
push ecx
push eax
mov byte [esp + 0xf4], 0x19
call fcn.004016e0
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0xec], 0x1a
call fcn.0040168b
lea edi, [esp + 0x60]
call fcn.0040174e
lea edi, [esp + 0x68]
call fcn.0040174e
lea edi, [esp + 0x70]
mov byte [esp + 0xe8], 1
call fcn.0040174e
mov ebx, 0x4358ec
test dword [esp + 0x1c], 0x10000
je 0x40f53c
lea eax, [esp + 0x18]
call fcn.00401737
mov dword [esp + 0x14], 0x4393a8
test eax, eax
jne 0x40f4bd
mov dword [esp + 0x14], ebx
push 0x4394b8
lea edi, [esp + 0x8c]
call fcn.004015ab
mov dword [esp + 0x20], eax
push dword [esp + 0x14]
lea edi, [esp + 0x84]
mov byte [esp + 0xec], 0x1b
call fcn.004015ab
push dword [esp + 0x20]
lea ecx, [esp + 0x7c]
push ecx
push eax
mov byte [esp + 0xf4], 0x1c
call fcn.004016e0
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0xec], 0x1d
call fcn.0040168b
lea edi, [esp + 0x78]
call fcn.0040174e
lea edi, [esp + 0x80]
call fcn.0040174e
lea edi, [esp + 0x88]
mov byte [esp + 0xe8], 1
call fcn.0040174e
test dword [esp + 0x1c], 0x20000
je 0x40f5e8
lea eax, [esp + 0x18]
call fcn.00401737
mov dword [esp + 0x14], 0x4393a8
test eax, eax
jne 0x40f563
mov dword [esp + 0x14], ebx
push 0x4394d8
lea edi, [esp + 0xa4]
call fcn.004015ab
mov ebx, eax
push dword [esp + 0x14]
lea edi, [esp + 0x9c]
mov byte [esp + 0xec], 0x1e
call fcn.004015ab
push ebx
lea ecx, [esp + 0x94]
push ecx
push eax
mov byte [esp + 0xf4], 0x1f
call fcn.004016e0
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0xec], 0x20
call fcn.0040168b
lea edi, [esp + 0x90]
call fcn.0040174e
lea edi, [esp + 0x98]
call fcn.0040174e
lea edi, [esp + 0xa0]
mov byte [esp + 0xe8], 1
call fcn.0040174e
mov ebx, 0x4358ec
test dword [esp + 0x1c], 0x40000
je 0x40f694
lea eax, [esp + 0x18]
call fcn.00401737
mov dword [esp + 0x14], 0x4393a8
test eax, eax
jne 0x40f60f
mov dword [esp + 0x14], ebx
push 0x439504
lea edi, [esp + 0xbc]
call fcn.004015ab
mov dword [esp + 0x20], eax
push dword [esp + 0x14]
lea edi, [esp + 0xb4]
mov byte [esp + 0xec], 0x21
call fcn.004015ab
push dword [esp + 0x20]
lea ecx, [esp + 0xac]
push ecx
push eax
mov byte [esp + 0xf4], 0x22
call fcn.004016e0
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0xec], 0x23
call fcn.0040168b
lea edi, [esp + 0xa8]
call fcn.0040174e
lea edi, [esp + 0xb0]
call fcn.0040174e
lea edi, [esp + 0xb8]
mov byte [esp + 0xe8], 1
call fcn.0040174e
cmp dword [esp + 0xc0], 0
je 0x40f733
lea eax, [esp + 0x18]
call fcn.00401737
mov dword [esp + 0x14], 0x4393a8
test eax, eax
jne 0x40f6bb
mov dword [esp + 0x14], ebx
push 0x439484
lea edi, [esp + 0xdc]
call fcn.004015ab
mov ebx, eax
push dword [esp + 0x14]
lea edi, [esp + 0xd4]
mov byte [esp + 0xec], 0x24
call fcn.004015ab
push ebx
lea ecx, [esp + 0xcc]
push ecx
push eax
mov byte [esp + 0xf4], 0x25
call fcn.004016e0
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0xec], 0x26
call fcn.0040168b
lea edi, [esp + 0xc8]
call fcn.0040174e
lea edi, [esp + 0xd0]
call fcn.0040174e
lea edi, [esp + 0xd8]
call fcn.0040174e
movzx esi, word [esi + 0x58]
lea eax, [esp + 0x18]
call fcn.00401737
test eax, eax
mov eax, dword [esp + 0x18]
jne 0x40f773
test esi, esi
jne 0x40f760
test eax, eax
je 0x40f754
mov eax, dword [eax]
jmp 0x40f756
xor eax, eax
push eax
push 0
push 0x439530
jmp 0x40f79c
test eax, eax
je 0x40f768
mov eax, dword [eax]
jmp 0x40f76a
xor eax, eax
push eax
push esi
push 0x43955c
jmp 0x40f79c
test esi, esi
jne 0x40f78b
test eax, eax
je 0x40f77f
mov eax, dword [eax]
jmp 0x40f781
xor eax, eax
push eax
push 0
push 0x439574
jmp 0x40f79c
test eax, eax
je 0x40f793
mov eax, dword [eax]
jmp 0x40f795
xor eax, eax
push eax
push esi
push 0x4395ac
mov ebx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov edi, ebx
call fcn.0040500e
lea edi, [esp + 0x24]
jmp 0x40ec73
mov esi, dword [esi + 0x60]
cmp esi, ecx
je case.default.0x40ec0e
mov eax, dword [esi]
jmp 0x40f7bf
xor eax, eax
mov ecx, dword [esp + 0xe0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10