Function at 0x40f5b4
Capabilities:
Terminate process

Disassembly:
push 0x114
mov eax, 0x432a7d
call fcn.00415339
mov dword [ebp - 0x114], edx
mov esi, ecx
mov dword [ebp - 0x11c], esi
and dword [ebp - 4], 0
lea eax, [ebp - 0x10c]
push 0x44
pop edi
push edi
push 0
push eax
call fcn.004169e0
mov dword [ebp - 0x10c], edi
xor eax, eax
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
and dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], vtable.StaticRaii_void___void___cdecl_utilities::Raii::CloseHandle_void____unsigned_int__0_.0
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 1
push eax
lea edx, [ebp - 0x10c]
mov ecx, esi
call fcn.0040f29b
add esp, 0x10
test al, al
jne 0x40f627
mov byte [ebp - 0x10d], al
jmp 0x40f816
xor eax, eax
lea edi, [ebp - 0x28]
stosd dword es:[edi], eax
lea ecx, [ebp - 0x118]
push ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x118], eax
lea eax, [ebp - 0x114]
push eax
push ecx
lea ecx, [ebp - 0x28]
call fcn.0040f877
lea edx, [esi + 0x64]
mov byte [ebp - 4], 2
mov ecx, dword [edx]
test ecx, ecx
je 0x40f678
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x20]
je 0x40f66e
mov dword [eax], ecx
add eax, 4
mov dword [ebp - 0x24], eax
jmp 0x40f678
push edx
push eax
lea ecx, [ebp - 0x28]
call fcn.0040fc31
xor al, al
xor edi, edi
mov byte [ebp - 0x10d], al
cmp dword [esi + 0x74], edi
jle 0x40f77d
test al, al
jne 0x40f77d
lea ecx, [ebp - 0x28]
call fcn.0040f47e
test al, al
je 0x40f6a9
mov al, 1
mov byte [ebp - 0x10d], al
jmp 0x40f6af
mov al, byte [ebp - 0x10d]
cmp edi, dword [esi + 0x78]
jl 0x40f6b8
test al, al
je 0x40f6e1
mov eax, dword [ebp + 0x2c]
test eax, eax
je 0x40f76d
mov eax, dword [eax]
mov esi, dword [eax + 8]
lea eax, [ebp - 0x1c]
push eax
mov ecx, esi
call dword [0x4341b4]
mov ecx, dword [ebp + 0x2c]
call esi
test al, al
jne 0x40f767
push 1
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x40f757
mov byte [ebp - 4], 3
push ecx
lea ecx, [ebp - 0xc0]
mov byte [ebp - 0xc8], al
mov dword [ebp - 0xc4], 0x44080c
call fcn.0040f944
mov byte [ebp - 4], 2
cmp byte [ebp - 0xc8], 0
jne 0x40f74c
push ecx
lea ecx, [ebp - 0xc8]
call fcn.0040fb69
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x120], eax
mov ecx, esi
lea eax, [ebp - 0x120]
push eax
call fcn.0040faa1
mov byte [ebp - 0xc8], 1
lea ecx, [ebp - 0xc8]
call fcn.0040f1f5
mov esi, dword [ebp - 0x11c]
mov al, 1
mov byte [ebp - 0x10d], al
jmp 0x40f773
mov esi, dword [ebp - 0x11c]
mov al, byte [ebp - 0x10d]
inc edi
cmp edi, dword [esi + 0x74]
jl 0x40f68b
mov edi, dword [ebp - 0x114]
push edi
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x40f7f4
mov byte [ebp - 4], 4
push ecx
lea ecx, [ebp - 0xc0]
mov byte [ebp - 0xc8], al
mov dword [ebp - 0xc4], 0x44080c
call fcn.0040f944
cmp byte [ebp - 0xc8], 0
jne 0x40f7e9
push ecx
lea ecx, [ebp - 0xc8]
call fcn.0040fbcd
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x114], eax
mov ecx, esi
lea eax, [ebp - 0x114]
push eax
call fcn.0040faa1
mov byte [ebp - 0xc8], 1
lea ecx, [ebp - 0xc8]
call fcn.0040f1f5
cmp dword [edi], 0
mov ecx, dword [ebp - 0x28]
sete byte [ebp - 0x10d]
test ecx, ecx
je 0x40f816
mov eax, dword [ebp - 0x20]
sub eax, ecx
and eax, 0xfffffffc
push eax
push ecx
call fcn.004053e7
pop ecx
pop ecx
cmp dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], vtable.StaticRaii_void___void___cdecl_utilities::Raii::CloseHandle_void____unsigned_int__0_.0
je 0x40f830
push dword [ebp - 0x14]
call fcn.00410718
and dword [ebp - 0x14], 0
pop ecx
lea ecx, [ebp + 8]
call fcn.0040f844
mov al, byte [ebp - 0x10d]
call fcn.004152e8
ret