Function at 0x40e273
Capabilities:
Terminate process

Disassembly:
push 0x41c
mov eax, 0x452918
call fcn.0043b197
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 0x40e504
cmp dword [0x471b30], ebx
je 0x40e473
lea ecx, [ebp - 0x418]
mov esi, 0x80004005
call fcn.00401b67
mov dword [ebp - 4], ebx
push 0x4560d4
mov ecx, edi
call fcn.0042ba21
test eax, eax
je 0x40e2e3
mov esi, 0xa0080004
jmp 0x40e40b
push 0x4560b8
mov ecx, edi
call fcn.0042ba21
test eax, eax
je 0x40e2fd
mov esi, 0xa0080003
jmp 0x40e40b
push 0x455ebc
mov ecx, edi
call fcn.0042ba21
test eax, eax
je 0x40e317
mov esi, 0x80070032
jmp 0x40e40b
push 0x455ea0
mov ecx, edi
call fcn.0042ba21
test eax, eax
je 0x40e331
mov esi, 0x8007000e
jmp 0x40e40b
push 0x455ed8
mov ecx, edi
call fcn.0042ba21
test eax, eax
je 0x40e34b
mov esi, 0x80070057
jmp 0x40e40b
push ebx
push 0x46e584
push 0x46df18
push ebx
push edi
call fcn.00438db6
add esp, 0x14
test eax, eax
je 0x40e36e
mov esi, 0xa0080002
jmp 0x40e40b
push 0x455b6c
mov ecx, edi
call fcn.0042ba21
test eax, eax
je 0x40e386
mov esi, dword [edi + 8]
jmp 0x40e40b
push 0x4565c0
mov ecx, edi
call fcn.0042ba21
test eax, eax
je 0x40e3ab
mov esi, dword [edi + 0xc]
cmp esi, ebx
jle 0x40e40b
and esi, 0xffff
or esi, 0x80070000
jmp 0x40e40b
push 0x45662c
mov ecx, edi
call fcn.0042ba21
test eax, eax
je 0x40e3c6
mov esi, dword [edi + 8]
or esi, 0xa0090000
jmp 0x40e40b
push 0x45a44c
mov ecx, edi
call fcn.0042ba21
test eax, eax
je 0x40e3e1
mov esi, dword [edi + 8]
or esi, 0x10000000
jmp 0x40e40b
push 0x455e84
mov ecx, edi
call fcn.0042ba21
test eax, eax
je 0x40e3f8
mov esi, 0xa0080001
jmp 0x40e40b
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
push dword [eax]
lea ecx, [ebp - 0x418]
call fcn.00409df2
mov eax, dword [ebp - 0x418]
cmp dword [eax - 0xc], ebx
jne 0x40e432
push ebx
lea ecx, [ebp - 0x414]
call fcn.0040151c
mov byte [ebp - 4], 1
mov dword [ebp - 0x41c], 1
jmp 0x40e438
lea eax, [ebp - 0x418]
push dword [eax]
mov ecx, dword [0x471b30]
push esi
call fcn.00412a37
mov dword [ebp - 4], ebx
test byte [ebp - 0x41c], 1
je 0x40e464
and dword [ebp - 0x41c], 0xfffffffe
lea ecx, [ebp - 0x414]
call fcn.00401b44
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x418]
call fcn.00401b44
push 0x455ea0
mov ecx, edi
call fcn.0042ba21
test eax, eax
jne 0x40e493
push 0x45a44c
mov ecx, edi
call fcn.0042ba21
test eax, eax
je 0x40e504
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 0x40e4d1
call fcn.0040d94d
mov dword [ebp - 4], 2
mov eax, dword [eax]
push 0x10
push eax
lea eax, [ebp - 0x410]
push eax
jmp 0x40e4e7
call fcn.0040d94d
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.00401b44
push 1
call fcn.00439225
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.00408dba
cmp edi, ebx
je 0x40e53f
push dword [ebp - 0x428]
mov ecx, dword [ebp - 0x424]
push edi
call fcn.00430f8f
mov dword [ebp - 0x420], eax
mov eax, dword [ebp - 0x420]
call fcn.0043b21a
ret 8