Function at 0x402bd0
Capabilities:
Create process on windows
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40a237
mov eax, dword fs:[0]
push eax
sub esp, 0xf0
mov eax, dword [0x40f018]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x50], esi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x30], bl
push 7
add esi, 0x1c
push esi
mov byte [ebp - 4], 1
call fcn.004073b0
push esi
cmp eax, 0xffffffff
jne 0x402c63
lea eax, [ebp - 0x4c]
push eax
call fcn.00408800
add esp, 8
mov edi, eax
lea esi, [ebp - 0x30]
mov byte [ebp - 4], 2
call fcn.004070d0
mov byte [ebp - 4], 1
mov edi, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
mov esi, 0x10
cmp dword [ebp - 0x38], esi
jb 0x402c7b
mov ecx, dword [ebp - 0x4c]
push ecx
call edi
add esp, 4
jmp 0x402c7b
or eax, 0xffffffff
xor ebx, ebx
lea ecx, [ebp - 0x30]
call fcn.00407140
mov edi, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
mov esi, 0x10
mov edx, dword [ebp + 8]
cmp dword [ebp + 0x1c], esi
jae 0x402c86
lea edx, [ebp + 8]
mov ecx, dword [ebp - 0x30]
cmp dword [ebp - 0x1c], esi
jae 0x402c91
lea ecx, [ebp - 0x30]
call fcn.00401000
test eax, eax
je 0x402cd4
mov byte [ebp - 4], bl
cmp dword [ebp - 0x1c], esi
jb 0x402cab
mov edx, dword [ebp - 0x30]
push edx
call edi
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x30], bl
cmp dword [ebp + 0x1c], esi
jb 0x402ccd
mov eax, dword [ebp + 8]
push eax
call edi
add esp, 4
xor eax, eax
jmp 0x402e49
mov ecx, dword [ebp - 0x50]
cmp byte [ecx + 0x58], bl
je 0x402e11
mov eax, dword [ebp + 8]
cmp dword [ebp + 0x1c], esi
jae 0x402ceb
lea eax, [ebp + 8]
push ebx
push ebx
push 0x40b3e8
push eax
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x1388
call edi
xor esi, esi
mov edi, edi
cmp dword [ebp + 0x1c], 0x10
mov eax, dword [ebp + 8]
jae 0x402d1c
lea eax, [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x402d36
cmp esi, 3
jge 0x402d36
push 0x2710
inc esi
call edi
jmp 0x402d10
push str.upinfo
lea edx, [ebp - 0x4c]
push 0x40f4f4
push edx
call fcn.004088c0
add esp, 0xc
push 8
push eax
lea eax, [ebp - 0xfc]
push eax
mov byte [ebp - 4], 3
call fcn.004059c0
mov byte [ebp - 4], 5
cmp dword [ebp - 0x38], 0x10
jb 0x402d76
mov ecx, dword [ebp - 0x4c]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov edx, dword [ebp - 0x50]
push 0x40b3fc
push ecx
add edx, 0x38
push edx
lea eax, [ebp - 0xfc]
push eax
mov dword [ebp - 0x38], 0xf
mov dword [ebp - 0x3c], ebx
mov byte [ebp - 0x4c], bl
call fcn.004089a0
add esp, 0xc
push eax
call fcn.004085b0
add esp, 8
lea ecx, [ebp - 0xfc]
push ecx
call fcn.00405ac0
mov eax, dword [ebp - 0xfc]
mov ecx, dword [eax + 4]
lea edx, [ebp - 0x9c]
mov dword [ebp - 0x50], edx
mov dword [ebp + ecx - 0xfc], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
lea ecx, [ebp - 0xf8]
mov byte [ebp - 4], 6
call fcn.00404f10
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0xfc]
mov ecx, dword [sym.imp.MSVCP100.dll_const_std::basic_ostream_char__struct_std::char_traits_char__::vftable]
mov eax, dword [edx + 4]
mov dword [ebp + eax - 0xfc], ecx
lea ecx, [ebp - 0x9c]
call dword [sym.imp.MSVCP100.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
mov edi, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
mov esi, 0x10
mov byte [ebp - 4], bl
cmp dword [ebp - 0x1c], esi
jb 0x402e22
mov edx, dword [ebp - 0x30]
push edx
call edi
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x30], bl
cmp dword [ebp + 0x1c], esi
jb 0x402e44
mov eax, dword [ebp + 8]
push eax
call edi
add esp, 4
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00409024
mov esp, ebp
pop ebp
ret