Function at 0x40e6da
Capabilities:
Terminate process

Disassembly:
push 0x41c
mov eax, 0x45320b
call fcn.0043b977
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
xor ebx, ebx
cmp edi, ebx
mov dword [ebp - 0x424], ecx
mov dword [ebp - 0x428], eax
mov dword [ebp - 0x41c], ebx
mov dword [ebp - 0x420], ebx
je 0x40e96b
cmp dword [0x471b30], ebx
je 0x40e8da
lea ecx, [ebp - 0x418]
mov esi, 0x80004005
call fcn.0041578f
mov dword [ebp - 4], ebx
push 0x4560e4
mov ecx, edi
call fcn.0042c210
test eax, eax
je 0x40e74a
mov esi, 0xa0080004
jmp 0x40e872
push 0x4560c8
mov ecx, edi
call fcn.0042c210
test eax, eax
je 0x40e764
mov esi, 0xa0080003
jmp 0x40e872
push 0x455ecc
mov ecx, edi
call fcn.0042c210
test eax, eax
je 0x40e77e
mov esi, 0x80070032
jmp 0x40e872
push 0x455eb0
mov ecx, edi
call fcn.0042c210
test eax, eax
je 0x40e798
mov esi, 0x8007000e
jmp 0x40e872
push 0x455ee8
mov ecx, edi
call fcn.0042c210
test eax, eax
je 0x40e7b2
mov esi, 0x80070057
jmp 0x40e872
push ebx
push 0x46e594
push 0x46df28
push ebx
push edi
call fcn.00439610
add esp, 0x14
test eax, eax
je 0x40e7d5
mov esi, 0xa0080002
jmp 0x40e872
push 0x455b7c
mov ecx, edi
call fcn.0042c210
test eax, eax
je 0x40e7ed
mov esi, dword [edi + 8]
jmp 0x40e872
push 0x4565d0
mov ecx, edi
call fcn.0042c210
test eax, eax
je 0x40e812
mov esi, dword [edi + 0xc]
cmp esi, ebx
jle 0x40e872
and esi, 0xffff
or esi, 0x80070000
jmp 0x40e872
push 0x45663c
mov ecx, edi
call fcn.0042c210
test eax, eax
je 0x40e82d
mov esi, dword [edi + 8]
or esi, 0xa0090000
jmp 0x40e872
push 0x45a364
mov ecx, edi
call fcn.0042c210
test eax, eax
je 0x40e848
mov esi, dword [edi + 8]
or esi, 0x10000000
jmp 0x40e872
push 0x455e94
mov ecx, edi
call fcn.0042c210
test eax, eax
je 0x40e85f
mov esi, 0xa0080001
jmp 0x40e872
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
push dword [eax]
lea ecx, [ebp - 0x418]
call fcn.00409dc1
mov eax, dword [ebp - 0x418]
cmp dword [eax - 0xc], ebx
jne 0x40e899
push ebx
lea ecx, [ebp - 0x414]
call fcn.004014f6
mov byte [ebp - 4], 1
mov dword [ebp - 0x41c], 1
jmp 0x40e89f
lea eax, [ebp - 0x418]
push dword [eax]
mov ecx, dword [0x471b30]
push esi
call fcn.00412fb1
mov dword [ebp - 4], ebx
test byte [ebp - 0x41c], 1
je 0x40e8cb
and dword [ebp - 0x41c], 0xfffffffe
lea ecx, [ebp - 0x414]
call fcn.00401af6
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x418]
call fcn.00401af6
push 0x455eb0
mov ecx, edi
call fcn.0042c210
test eax, eax
jne 0x40e8fa
push 0x45a364
mov ecx, edi
call fcn.0042c210
test eax, eax
je 0x40e96b
mov eax, dword [edi]
push ebx
push 0x200
lea ecx, [ebp - 0x410]
push ecx
mov ecx, edi
call dword [eax + 0xc]
test eax, eax
lea eax, [ebp - 0x414]
push eax
push 0x4719b8
je 0x40e938
call fcn.0040da11
mov dword [ebp - 4], 2
mov eax, dword [eax]
push 0x10
push eax
lea eax, [ebp - 0x410]
push eax
jmp 0x40e94e
call fcn.0040da11
mov dword [ebp - 4], 3
mov eax, dword [eax]
push 0x10
push eax
push str.Out_of_memory_
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x414]
call fcn.00401af6
push 1
call fcn.00439a0b
mov ecx, dword [ebp - 0x424]
xor eax, eax
inc eax
mov dword [ecx + 0xa4], eax
mov esi, dword [0x4719d8]
mov dword [0x471a60], eax
call fcn.00408d7d
cmp edi, ebx
je 0x40e9a6
push dword [ebp - 0x428]
mov ecx, dword [ebp - 0x424]
push edi
call fcn.00431afb
mov dword [ebp - 0x420], eax
mov eax, dword [ebp - 0x420]
call fcn.0043b9fa
ret 8