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

Disassembly:
sub esp, 0x10
mov al, byte [esp + 0x1c]
mov edx, 0x1d4
push ebx
test al, al
mov byte [esp + 7], 1
push ebp
mov ebp, dword [esp + 0x20]
mov ebx, 0x20c
cmove ebx, edx
push esi
add ebx, ebp
push edi
test al, al
je 0x40e977
mov ecx, dword [ebp + 0xac]
mov edi, dword [ebp + 0xc4]
jmp 0x40e980
mov ecx, dword [ebp + 0x64]
mov edi, dword [ebp + 0xc8]
mov eax, dword [esp + 0x30]
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], ecx
mov dword [eax], 0
cmp dword [ebp + 0xb8], 2
jne 0x40e9c1
cmp dword [ebp + 0x14c], 0xffffffff
mov eax, 0x1b0
mov edx, 0x1c0
cmovne eax, edx
cmp dword [eax + ebp], 2
je 0x40e9c1
mov esi, dword [esp + 0x24]
mov al, byte [esi + 0x4a3]
jmp 0x40e9cb
mov esi, dword [esp + 0x24]
mov al, byte [esi + 0x437]
test al, al
jne 0x40e9d9
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x10
ret
mov eax, dword [esi + 0x78]
test eax, eax
je 0x40e9eb
test byte [eax + 4], 0x10
je 0x40e9eb
add eax, 0x74
jmp 0x40e9f1
lea eax, [esi + 0x920]
mov dword [esp + 0x1c], eax
xor eax, eax
mov dword [esp + 0x2c], eax
cmp dword [esi + 0x4d8], eax
jbe 0x40ecf3
mov dword [esp + 0x28], eax
nop dword [eax + eax]
mov esi, dword [esi + 0x91c]
add esi, eax
cmp dword [esi + 0xc], 0
je 0x40ec9e
push dword [esi]
push ecx
call fcn.00418360
add esp, 8
test eax, eax
je 0x40ec9e
cmp byte [ebp + 0x250], 0
mov eax, dword [esi + 4]
jne 0x40ea4a
test eax, eax
je 0x40ea66
jmp 0x40ec9e
test eax, eax
je 0x40ec9e
push eax
push dword [ebp + 0x7c]
call fcn.00418360
add esp, 8
test eax, eax
je 0x40ec9e
cmp byte [ebp + 0x251], 0
mov eax, dword [esi + 0x1c]
jne 0x40ea7c
cmp eax, 0xffffffff
je 0x40ea91
jmp 0x40ec9e
cmp eax, 0xffffffff
je 0x40ec9e
cmp dword [ebp + 0xcc], eax
jne 0x40ec9e
cmp edi, dword [esi + 0x18]
jne 0x40ec9e
mov eax, dword [ebp + 0x290]
push dword [esi + 8]
push dword [eax]
call fcn.00418360
add esp, 8
test eax, eax
je 0x40ec9e
mov eax, dword [ebx]
cmp eax, dword [esi + 0x20]
jne 0x40ec9e
mov eax, dword [ebx + 4]
cmp eax, dword [esi + 0x24]
jne 0x40ec9e
mov al, byte [ebx + 0x34]
cmp al, byte [esi + 0x54]
jne 0x40ec9e
mov al, byte [ebx + 0x35]
cmp al, byte [esi + 0x55]
jne 0x40ec9e
mov al, byte [ebx + 0x36]
cmp al, byte [esi + 0x56]
jne 0x40ec9e
mov edx, dword [ebx + 0x28]
mov edi, dword [esi + 0x48]
test edx, edx
jne 0x40eb04
test edi, edi
jne 0x40ec9e
jmp 0x40eb72
test edi, edi
je 0x40ec9e
mov ecx, dword [edx + 4]
cmp ecx, dword [edi + 4]
jne 0x40ec9e
mov edx, dword [edx]
mov edi, dword [edi]
sub ecx, 4
jb 0x40eb32
mov eax, dword [edx]
cmp eax, dword [edi]
jne 0x40eb37
add edx, 4
add edi, 4
sub ecx, 4
jae 0x40eb21
cmp ecx, 0xfffffffc
je 0x40eb68
mov al, byte [edx]
cmp al, byte [edi]
jne 0x40eb64
cmp ecx, 0xfffffffd
je 0x40eb68
mov al, byte [edx + 1]
cmp al, byte [edi + 1]
jne 0x40eb64
cmp ecx, 0xfffffffe
je 0x40eb68
mov al, byte [edx + 2]
cmp al, byte [edi + 2]
jne 0x40eb64
cmp ecx, 0xffffffff
je 0x40eb68
mov al, byte [edx + 3]
cmp al, byte [edi + 3]
je 0x40eb68
xor al, al
jmp 0x40eb6a
mov al, 1
test al, al
je 0x40ec9e
mov edx, dword [ebx + 0x2c]
mov edi, dword [esi + 0x4c]
test edx, edx
jne 0x40eb86
test edi, edi
jne 0x40ec9e
jmp 0x40ebf4
test edi, edi
je 0x40ec9e
mov ecx, dword [edx + 4]
cmp ecx, dword [edi + 4]
jne 0x40ec9e
mov edx, dword [edx]
mov edi, dword [edi]
sub ecx, 4
jb 0x40ebb4
mov eax, dword [edx]
cmp eax, dword [edi]
jne 0x40ebb9
add edx, 4
add edi, 4
sub ecx, 4
jae 0x40eba3
cmp ecx, 0xfffffffc
je 0x40ebea
mov al, byte [edx]
cmp al, byte [edi]
jne 0x40ebe6
cmp ecx, 0xfffffffd
je 0x40ebea
mov al, byte [edx + 1]
cmp al, byte [edi + 1]
jne 0x40ebe6
cmp ecx, 0xfffffffe
je 0x40ebea
mov al, byte [edx + 2]
cmp al, byte [edi + 2]
jne 0x40ebe6
cmp ecx, 0xffffffff
je 0x40ebea
mov al, byte [edx + 3]
cmp al, byte [edi + 3]
je 0x40ebea
xor al, al
jmp 0x40ebec
mov al, 1
test al, al
je 0x40ec9e
push dword [esi + 0x28]
push dword [ebx + 8]
call fcn.00418330
add esp, 8
test eax, eax
je 0x40ec9e
push dword [esi + 0x2c]
push dword [ebx + 0xc]
call fcn.00418330
add esp, 8
test eax, eax
je 0x40ec9e
push dword [esi + 0x30]
push dword [ebx + 0x10]
call fcn.00418330
add esp, 8
test eax, eax
je 0x40ec9e
push dword [esi + 0x34]
push dword [ebx + 0x14]
call fcn.00418330
add esp, 8
test eax, eax
je 0x40ec9e
push dword [esi + 0x38]
push dword [ebx + 0x18]
call fcn.00418330
add esp, 8
test eax, eax
je 0x40ec9e
push dword [esi + 0x3c]
push dword [ebx + 0x1c]
call fcn.00418330
add esp, 8
test eax, eax
je 0x40ec9e
push dword [esi + 0x40]
push dword [ebx + 0x20]
call fcn.00418330
add esp, 8
test eax, eax
je 0x40ec9e
push dword [esi + 0x50]
push dword [ebx + 0x30]
call fcn.00418330
add esp, 8
test eax, eax
je 0x40ec9e
push dword [esi + 0x44]
push dword [ebx + 0x24]
call fcn.00418330
add esp, 8
test eax, eax
jne 0x40ecc8
mov esi, dword [esp + 0x24]
inc dword [esp + 0x2c]
add dword [esp + 0x28], 0x58
mov eax, dword [esp + 0x2c]
cmp eax, dword [esi + 0x4d8]
jae 0x40ecf3
mov eax, dword [esp + 0x28]
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
jmp 0x40ea10
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x30]
inc dword [eax]
mov eax, dword [eax]
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0xc]
mov dword [ecx], eax
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x40ece9
mov eax, dword [esi + 0x10]
mov dword [ecx], eax
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x10
ret
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret