Function at 0x407ce3
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 8
call fcn.0040a45b
xor esi, esi
inc esi
cmp dword [0x43cc28], esi
pop ecx
jne 0x407d0b
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x43cc24], esi
mov byte [0x43cc20], al
jne 0x407d71
mov ecx, dword [0x43e428]
test ecx, ecx
je 0x407d52
mov eax, dword [0x43e424]
sub eax, 4
cmp eax, ecx
jmp 0x407d4b
mov eax, dword [eax]
test eax, eax
je 0x407d3d
call eax
mov eax, dword [0x43e424]
sub eax, 4
cmp eax, dword [0x43e428]
mov dword [0x43e424], eax
jae 0x407d35
mov eax, 0x43907c
mov esi, 0x439084
cmp eax, esi
mov edi, eax
jae 0x407d71
mov eax, dword [edi]
test eax, eax
je 0x407d6a
call eax
add edi, 4
cmp edi, esi
jb 0x407d62
mov eax, 0x439088
mov esi, 0x439090
cmp eax, esi
mov edi, eax
jae 0x407d90
mov eax, dword [edi]
test eax, eax
je 0x407d89
call eax
add edi, 4
cmp edi, esi
jb 0x407d81
cmp dword [ebp + 0x10], 0
pop edi
pop esi
je 0x407da1
push 8
call fcn.0040a3c7
jmp 0x407db3
push dword [ebp + 8]
mov dword [0x43cc28], 1
call fcn.00407c3c
pop ecx
pop ebp
ret

Function at 0x40b288
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x439d24]
xor eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 4], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x43a2b8]
je 0x40b2b5
inc eax
cmp eax, 0x12
jb 0x40b2a6
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x43a2b8]
jne 0x40b3e9
mov eax, dword [0x43cbd8]
cmp eax, 1
je 0x40b3c4
cmp eax, edx
jne 0x40b2e5
cmp dword [0x439d4c], 1
je 0x40b3c4
cmp ecx, 0xfc
je 0x40b3e9
push 0x104
lea eax, [ebp - 0x10c]
push eax
push edx
mov byte [ebp - 8], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40b31e
lea eax, [ebp - 0x10c]
push str._program_name_unknown_
push eax
call fcn.0040d830
pop ecx
pop ecx
lea eax, [ebp - 0x10c]
push eax
lea edi, [ebp - 0x10c]
call fcn.004078d0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x40b360
lea eax, [ebp - 0x10c]
push eax
call fcn.004078d0
mov edi, eax
lea eax, [ebp - 0x10c]
sub eax, 0x3b
push 3
add edi, eax
push 0x431e9c
push edi
call fcn.0040db70
add esp, 0x10
push edi
call fcn.004078d0
push dword [esi + 0x43a2bc]
mov ebx, eax
call fcn.004078d0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00406560
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.0040d830
push edi
push ebx
call fcn.0040d840
push 0x431e98
push ebx
call fcn.0040d840
push dword [esi + 0x43a2bc]
push ebx
call fcn.0040d840
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0040da71
add esp, 0x2c
jmp 0x40b3e9
push edx
lea eax, [ebp + 8]
push eax
lea esi, [esi + 0x43a2bc]
push dword [esi]
call fcn.004078d0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x118]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
call fcn.0040600b
pop edi
pop esi
pop ebx
leave
ret