Function at 0x40e5e3
Capabilities:
Terminate process

Disassembly:
push 0x41c
mov eax, 0x452c5b
call fcn.0043b3c8
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 0x40e874
cmp dword [0x471b30], ebx
je 0x40e7e3
lea ecx, [ebp - 0x418]
mov esi, 0x80004005
call fcn.00415256
mov dword [ebp - 4], ebx
push 0x4560e4
mov ecx, edi
call fcn.0042bc4b
test eax, eax
je 0x40e653
mov esi, 0xa0080004
jmp 0x40e77b
push 0x4560c8
mov ecx, edi
call fcn.0042bc4b
test eax, eax
je 0x40e66d
mov esi, 0xa0080003
jmp 0x40e77b
push 0x455ecc
mov ecx, edi
call fcn.0042bc4b
test eax, eax
je 0x40e687
mov esi, 0x80070032
jmp 0x40e77b
push 0x455eb0
mov ecx, edi
call fcn.0042bc4b
test eax, eax
je 0x40e6a1
mov esi, 0x8007000e
jmp 0x40e77b
push 0x455ee8
mov ecx, edi
call fcn.0042bc4b
test eax, eax
je 0x40e6bb
mov esi, 0x80070057
jmp 0x40e77b
push ebx
push 0x46e594
push 0x46df28
push ebx
push edi
call fcn.0043936c
add esp, 0x14
test eax, eax
je 0x40e6de
mov esi, 0xa0080002
jmp 0x40e77b
push 0x455b7c
mov ecx, edi
call fcn.0042bc4b
test eax, eax
je 0x40e6f6
mov esi, dword [edi + 8]
jmp 0x40e77b
push 0x4565d0
mov ecx, edi
call fcn.0042bc4b
test eax, eax
je 0x40e71b
mov esi, dword [edi + 0xc]
cmp esi, ebx
jle 0x40e77b
and esi, 0xffff
or esi, 0x80070000
jmp 0x40e77b
push 0x45663c
mov ecx, edi
call fcn.0042bc4b
test eax, eax
je 0x40e736
mov esi, dword [edi + 8]
or esi, 0xa0090000
jmp 0x40e77b
push 0x45a45c
mov ecx, edi
call fcn.0042bc4b
test eax, eax
je 0x40e751
mov esi, dword [edi + 8]
or esi, 0x10000000
jmp 0x40e77b
push 0x455e94
mov ecx, edi
call fcn.0042bc4b
test eax, eax
je 0x40e768
mov esi, 0xa0080001
jmp 0x40e77b
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
push dword [eax]
lea ecx, [ebp - 0x418]
call fcn.00409da3
mov eax, dword [ebp - 0x418]
cmp dword [eax - 0xc], ebx
jne 0x40e7a2
push ebx
lea ecx, [ebp - 0x414]
call fcn.00401510
mov byte [ebp - 4], 1
mov dword [ebp - 0x41c], 1
jmp 0x40e7a8
lea eax, [ebp - 0x418]
push dword [eax]
mov ecx, dword [0x471b30]
push esi
call fcn.00412e35
mov dword [ebp - 4], ebx
test byte [ebp - 0x41c], 1
je 0x40e7d4
and dword [ebp - 0x41c], 0xfffffffe
lea ecx, [ebp - 0x414]
call fcn.00410121
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x418]
call fcn.00410121
push 0x455eb0
mov ecx, edi
call fcn.0042bc4b
test eax, eax
jne 0x40e803
push 0x45a45c
mov ecx, edi
call fcn.0042bc4b
test eax, eax
je 0x40e874
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 0x40e841
call fcn.0040d9e4
mov dword [ebp - 4], 2
mov eax, dword [eax]
push 0x10
push eax
lea eax, [ebp - 0x410]
push eax
jmp 0x40e857
call fcn.0040d9e4
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.00410121
push 1
call fcn.00438efa
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.00408d5f
cmp edi, ebx
je 0x40e8af
push dword [ebp - 0x428]
mov ecx, dword [ebp - 0x424]
push edi
call fcn.00431302
mov dword [ebp - 0x420], eax
mov eax, dword [ebp - 0x420]
call fcn.0043b44b
ret 8