Function at 0x47aa51
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 8
call fcn.0047b88f
xor esi, esi
inc esi
cmp dword [0x4981fc], esi
pop ecx
jne 0x47aa79
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 [0x4981f8], esi
mov byte [0x4981f4], al
jne 0x47aadf
mov ecx, dword [0x498968]
test ecx, ecx
je 0x47aac0
mov eax, dword [0x498964]
sub eax, 4
cmp eax, ecx
jmp 0x47aab9
mov eax, dword [eax]
test eax, eax
je 0x47aaab
call eax
mov eax, dword [0x498964]
sub eax, 4
cmp eax, dword [0x498968]
mov dword [0x498964], eax
jae 0x47aaa3
mov eax, 0x48d01c
mov esi, 0x48d020
cmp eax, esi
mov edi, eax
jae 0x47aadf
mov eax, dword [edi]
test eax, eax
je 0x47aad8
call eax
add edi, 4
cmp edi, esi
jb 0x47aad0
mov eax, 0x48d024
mov esi, 0x48d028
cmp eax, esi
mov edi, eax
jae 0x47aafe
mov eax, dword [edi]
test eax, eax
je 0x47aaf7
call eax
add edi, 4
cmp edi, esi
jb 0x47aaef
cmp dword [ebp + 0x10], 0
pop edi
pop esi
je 0x47ab0f
push 8
call fcn.0047b7fb
jmp 0x47ab21
push dword [ebp + 8]
mov dword [0x4981fc], 1
call fcn.0047a9aa
pop ecx
pop ebp
ret

Function at 0x47ab64
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x497b50]
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 + 0x4978e0]
je 0x47ab91
inc eax
cmp eax, 0x12
jb 0x47ab82
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x4978e0]
jne 0x47acc5
mov eax, dword [0x4981b4]
cmp eax, 1
je 0x47aca0
cmp eax, edx
jne 0x47abc1
cmp dword [0x4978dc], 1
je 0x47aca0
cmp ecx, 0xfc
je 0x47acc5
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 0x47abfa
lea eax, [ebp - 0x10c]
push str._program_name_unknown_
push eax
call fcn.0047bab0
pop ecx
pop ecx
lea eax, [ebp - 0x10c]
push eax
lea edi, [ebp - 0x10c]
call fcn.0047bce0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x47ac3c
lea eax, [ebp - 0x10c]
push eax
call fcn.0047bce0
mov edi, eax
lea eax, [ebp - 0x10c]
sub eax, 0x3b
push 3
add edi, eax
push 0x48ad18
push edi
call fcn.0047bbb0
add esp, 0x10
push edi
call fcn.0047bce0
push dword [esi + 0x4978e4]
mov ebx, eax
call fcn.0047bce0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.0047b720
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.0047bab0
push edi
push ebx
call fcn.0047bac0
push 0x48acf8
push ebx
call fcn.0047bac0
push dword [esi + 0x4978e4]
push ebx
call fcn.0047bac0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0047b9b2
add esp, 0x2c
jmp 0x47acc5
push edx
lea eax, [ebp + 8]
push eax
lea esi, [esi + 0x4978e4]
push dword [esi]
call fcn.0047bce0
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.0047bd9c
pop edi
pop esi
pop ebx
leave
ret