Function at 0x40e7b5
Capabilities:
Terminate process

Disassembly:
push 0x41c
mov eax, 0x453370
call fcn.0043bb27
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 0x40ea48
cmp dword [0x472b30], ebx
je 0x40e9b7
lea ecx, [ebp - 0x418]
mov esi, 0x80004005
call fcn.0041596f
mov dword [ebp - 4], ebx
push 0x4570e4
mov ecx, edi
call fcn.0042c3bb
test eax, eax
je 0x40e825
mov esi, 0xa0080004
jmp 0x40e94d
push 0x4570c8
mov ecx, edi
call fcn.0042c3bb
test eax, eax
je 0x40e83f
mov esi, 0xa0080003
jmp 0x40e94d
push 0x456ecc
mov ecx, edi
call fcn.0042c3bb
test eax, eax
je 0x40e859
mov esi, 0x80070032
jmp 0x40e94d
push 0x456eb0
mov ecx, edi
call fcn.0042c3bb
test eax, eax
je 0x40e873
mov esi, 0x8007000e
jmp 0x40e94d
push 0x456ee8
mov ecx, edi
call fcn.0042c3bb
test eax, eax
je 0x40e88d
mov esi, 0x80070057
jmp 0x40e94d
push ebx
push 0x46f594
push 0x46ef28
push ebx
push edi
call fcn.004396ea
add esp, 0x14
test eax, eax
je 0x40e8b0
mov esi, 0xa0080002
jmp 0x40e94d
push 0x456b7c
mov ecx, edi
call fcn.0042c3bb
test eax, eax
je 0x40e8c8
mov esi, dword [edi + 8]
jmp 0x40e94d
push 0x4575d0
mov ecx, edi
call fcn.0042c3bb
test eax, eax
je 0x40e8ed
mov esi, dword [edi + 0xc]
cmp esi, ebx
jle 0x40e94d
and esi, 0xffff
or esi, 0x80070000
jmp 0x40e94d
push 0x45763c
mov ecx, edi
call fcn.0042c3bb
test eax, eax
je 0x40e908
mov esi, dword [edi + 8]
or esi, 0xa0090000
jmp 0x40e94d
push 0x45b45c
mov ecx, edi
call fcn.0042c3bb
test eax, eax
je 0x40e923
mov esi, dword [edi + 8]
or esi, 0x10000000
jmp 0x40e94d
push 0x456e94
mov ecx, edi
call fcn.0042c3bb
test eax, eax
je 0x40e93a
mov esi, 0xa0080001
jmp 0x40e94d
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
push dword [eax]
lea ecx, [ebp - 0x418]
call fcn.00409ed4
mov eax, dword [ebp - 0x418]
cmp dword [eax - 0xc], ebx
jne 0x40e974
push ebx
lea ecx, [ebp - 0x414]
call fcn.004014ea
mov byte [ebp - 4], 1
mov dword [ebp - 0x41c], 1
jmp 0x40e97a
lea eax, [ebp - 0x418]
mov eax, dword [eax]
mov ecx, dword [0x472b30]
push ebx
push eax
push esi
call fcn.00412ff1
mov dword [ebp - 4], ebx
test byte [ebp - 0x41c], 1
je 0x40e9a8
and dword [ebp - 0x41c], 0xfffffffe
lea ecx, [ebp - 0x414]
call fcn.004102dc
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x418]
call fcn.004102dc
push 0x456eb0
mov ecx, edi
call fcn.0042c3bb
test eax, eax
jne 0x40e9d7
push 0x45b45c
mov ecx, edi
call fcn.0042c3bb
test eax, eax
je 0x40ea48
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 0x4729b8
je 0x40ea15
call fcn.0040daec
mov dword [ebp - 4], 2
mov eax, dword [eax]
push 0x10
push eax
lea eax, [ebp - 0x410]
push eax
jmp 0x40ea2b
call fcn.0040daec
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.004102dc
push 1
call fcn.00439adb
mov ecx, dword [ebp - 0x424]
xor eax, eax
inc eax
mov dword [ecx + 0xa4], eax
mov esi, dword [0x4729d8]
mov dword [0x472a60], eax
call fcn.00408e9c
cmp edi, ebx
je 0x40ea83
push dword [ebp - 0x428]
mov ecx, dword [ebp - 0x424]
push edi
call fcn.0043198f
mov dword [ebp - 0x420], eax
mov eax, dword [ebp - 0x420]
call fcn.0043bbaa
ret 8