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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 0x10]
push edi
cmp eax, 1
je 0x40b779
cmp eax, 4
je 0x40b779
push 0xfffffffffffffffc
xor ebx, ebx
push str.Execute
push str.Failed_in_call_to_function__s__Code:__d_
lea ecx, [esp + 0x2c]
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x30], bl
call fcn.00433100
mov edi, 0xb
add esp, 0xc
lea eax, [esp + 0x24]
cmp dword [esp + 0x20], edi
jbe 0x40b741
mov eax, dword [esp + 0x24]
mov ecx, dword [esi + 0xc]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0x18]
push ebx
push ebx
push ebx
push 0x4aeeef
call eax
cmp dword [esp + 0x20], edi
jbe 0x40b76c
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x40b76c
push eax
call dword [0x4d5464]
add esp, 4
mov eax, 0xfffffffc
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov ebp, 6
push esi
mov dword [esi + 0x10], ebp
call fcn.0040a180
add esp, 4
cmp dword [esi + 0x120], 0
mov dword [esp + 0x1c], eax
jne 0x40b8e6
mov eax, dword [esi + 0x18]
cmp dword [eax + 0xa8], ebp
jne 0x40b7d1
mov edx, 0xfffffffc
add dword [esi + 0x128], edx
add dword [esi + 0x124], edx
mov edx, dword [eax + 0xb8]
mov ecx, dword [esi + 0x128]
mov dword [ecx], edx
mov eax, dword [esi + 0x18]
mov ecx, dword [eax + 0xbc]
mov dword [esi + 0x18], ecx
mov ebx, dword [esi + 0x18]
mov eax, dword [ebx + 0xa8]
cmp eax, 3
je 0x40b7e8
cmp eax, 2
jne 0x40b869
mov edx, dword [esi + 0x124]
mov ecx, dword [edx]
test ecx, ecx
je 0x40b85d
mov edi, dword [ecx + 4]
cmp eax, 3
jne 0x40b818
mov ebx, dword [ebx + 0xcc]
cmp dword [edi + 0x88], ebx
jbe 0x40b85d
mov eax, dword [edi + 0x84]
mov ecx, dword [eax + ebx*4]
jmp 0x40b8ab
mov ebp, dword [edi + 0x34]
xor edx, edx
test ebp, ebp
je 0x40b858
mov ecx, dword [esi + 0xc]
mov eax, dword [ecx + 0x768]
mov ecx, dword [ebx + 0xa0]
mov dword [esp + 0x14], eax
mov eax, dword [edi + 0x30]
mov dword [esp + 0x18], ecx
mov ebx, dword [esp + 0x14]
mov ecx, dword [eax]
mov ecx, dword [ebx + ecx*4]
mov ebx, dword [esp + 0x18]
cmp dword [ecx + 0xa0], ebx
je 0x40b88e
inc edx
add eax, 4
cmp edx, ebp
jb 0x40b83b
mov ebp, 6
mov edi, str.Null_pointer_access
mov eax, esi
call fcn.0040ed90
mov ecx, dword [esi + 0x18]
mov eax, dword [ecx + 0xa8]
cmp eax, 1
jne 0x40b8c5
mov eax, dword [ecx + 0xc4]
mov ecx, dword [eax]
mov eax, esi
mov dword [esi + 0x120], ecx
call fcn.0040c0c0
jmp 0x40b8e6
cmp dword [ecx + 0xa8], 3
mov ebp, 6
jne 0x40b8ab
mov edx, dword [ecx + 0xcc]
mov eax, dword [edi + 0x84]
mov ecx, dword [eax + edx*4]
test ecx, ecx
je 0x40b85d
mov edx, dword [ecx + 0xa0]
mov eax, dword [esi + 0x18]
cmp edx, dword [eax + 0xa0]
jne 0x40b85d
mov dword [esi + 0x18], ecx
jmp 0x40b869
test eax, eax
jne 0x40b8e6
mov ecx, dword [ecx + 0xa4]
push eax
mov eax, esi
call fcn.00408850
add esp, 4
cmp dword [esi + 0x10], ebp
jne 0x40b8e6
mov dword [esi + 0x10], 0
mov eax, dword [esi + 0xc]
xor edi, edi
cmp byte [eax + 0xf1d], 0
je 0x40b900
mov edi, dword [eax + 0xc80]
add edi, dword [eax + 0xc6c]
cmp dword [esi + 0x10], ebp
jne 0x40b910
push esi
call fcn.0040c220
cmp dword [esi + 0x10], ebp
je 0x40b905
cmp byte [esi + 0x84], 0
je 0x40b95a
lea eax, [esi + 0x88]
cmp dword [esi + 0x90], ebp
jge 0x40b93f
mov edx, dword [esi + 0xc]
push edx
mov edx, dword [esi + 0xc4]
call fcn.0042acc0
mov byte [esi + 0x140], 1
jmp 0x40b961
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 0xc4]
push 0
push esi
push ecx
call fcn.0042ac20
mov byte [esi + 0x140], 1
jmp 0x40b961
mov byte [esi + 0x140], 0
mov ecx, dword [esi + 0xc]
mov byte [esi + 0x14], 0
cmp byte [ecx + 0xf1d], 0
je 0x40b998
mov eax, dword [ecx + 0xc80]
add eax, dword [ecx + 0xc6c]
cmp eax, edi
jbe 0x40b986
sub eax, edi
push eax
jmp 0x40b98c
test eax, eax
je 0x40b998
push 1
mov edx, dword [ecx]
mov eax, dword [edx + 0x12c]
push 0xe
call eax
mov eax, dword [esp + 0x1c]
dec dword [eax + 4]
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x40b9ba
mov ecx, dword [esi + 0x78]
mov edx, dword [ecx + 0x3c]
mov dword [esi + 0x13c], edx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi + 0x15], 0
je 0x40b9d4
mov eax, 2
mov byte [esi + 0x15], 0
mov dword [esi + 0x10], eax
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x40b9e1
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
xor ecx, ecx
cmp eax, 3
sete cl
pop edi
pop esi
lea eax, [ecx*4 - 1]
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret