Function at 0x471740
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x48
call fcn.007081d0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x30], 0
push 0x8001
call fcn.004a9210
add esp, 4
mov dword [0x7d10f8], eax
push 0x8001
call fcn.004a9260
add esp, 4
mov dword [0x7d10fc], eax
push 0x8001
call fcn.004a91c0
add esp, 4
mov dword [0x7d10f0], eax
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp + 8]
push ecx
call fcn.004b0340
add esp, 8
mov dword [ebp - 0x14], str.apps_startup
call fcn.004711d0
test eax, eax
je 0x4717db
mov dword [ebp - 0x14], str.prog_init
call fcn.00471a40
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x47181d
mov edx, 4
imul eax, edx, 0
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + eax]
push edx
mov eax, dword [ebp - 0x14]
push eax
push str.FATAL:_Startup_failure__dev_note:__s____for__s_n
mov ecx, dword [0x7d10f0]
push ecx
call fcn.00513860
add esp, 0x10
mov edx, dword [0x7d10f0]
push edx
call fcn.005283a0
add esp, 4
mov dword [ebp - 8], 1
jmp 0x4719b6
mov eax, 4
imul ecx, eax, 0
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + ecx]
push eax
call fcn.004a6660
add esp, 4
mov dword [ebp - 0xc], eax
call fcn.00586d50
mov dword [0x7d10f4], eax
cmp dword [0x7d10f4], 0
jne 0x47185b
mov ecx, dword [ebp - 0xc]
push ecx
push str._s:_could_not_get_default_config_file_n
call fcn.004a7410
add esp, 8
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x44], edx
lea eax, [ebp - 0x48]
push eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.00471720
add esp, 8
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x471964
cmp dword [ebp + 8], 1
jle 0x471911
push str._help
mov edx, 4
shl edx, 0
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + edx]
push ecx
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
add esp, 8
test eax, eax
je 0x471908
push str.__help
mov edx, 4
shl edx, 0
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + edx]
push ecx
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
add esp, 8
test eax, eax
je 0x471908
push 0x71d554
mov edx, 4
shl edx, 0
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + edx]
push ecx
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
add esp, 8
test eax, eax
je 0x471908
push 0x71d558
mov edx, 4
shl edx, 0
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + edx]
push ecx
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
add esp, 8
test eax, eax
jne 0x471911
mov dword [ebp - 0x18], 1
jmp 0x471918
mov dword [ebp - 0x18], 0
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 8]
sub eax, 1
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 4
mov dword [ebp + 0xc], ecx
cmp dword [ebp + 8], 1
je 0x47194f
cmp dword [ebp - 0x10], 0
jne 0x47194f
mov edx, 4
imul eax, edx, 0
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + eax]
mov dword [ebp - 0x1c], edx
jmp 0x471956
mov dword [ebp - 0x1c], str.help
mov eax, dword [ebp - 0x1c]
push eax
call fcn.004a5040
add esp, 4
jmp 0x471975
mov ecx, 4
imul edx, ecx, 0
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
mov dword [eax + edx], ecx
cmp dword [ebp + 8], 0
je 0x47199a
cmp dword [ebp - 0x10], 0
jne 0x47199a
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.00471250
add esp, 0xc
mov dword [ebp - 0x20], eax
jmp 0x4719b0
push 0x7c6228
push 1
mov edx, dword [ebp - 4]
push edx
call fcn.00471250
add esp, 0xc
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 8], eax
push 0x12d
push str.appsopenssl.c
mov ecx, dword [0x7d10f4]
push ecx
call fcn.00513600
add esp, 0xc
mov edx, dword [ebp - 4]
push edx
call fcn.004716c0
add esp, 4
push 0x12f
push str.appsopenssl.c
mov eax, dword [ebp - 0x28]
push eax
call fcn.00513600
add esp, 0xc
call fcn.004ad680
test eax, eax
jne 0x471a01
mov dword [ebp - 8], 1
mov ecx, dword [0x7d10f8]
push ecx
call fcn.00520de0
add esp, 4
mov edx, dword [0x7d10fc]
push edx
call fcn.00520ee0
add esp, 4
call fcn.004711a0
mov eax, dword [0x7d10f0]
push eax
call fcn.00520ee0
add esp, 4
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
mov esp, ebp
pop ebp
ret