Function at 0x440720
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x184
mov eax, dword [0x58d038]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
push 0x5933a8
push 0x5933b0
push 0x43ffe0
push 0x54f4fc
call fcn.00440310
call fcn.00440270
test al, al
je 0x4408ad
xor edi, edi
push edi
xor eax, eax
mov ebx, 7
push 0x551f80
lea ecx, [ebp - 0xbc]
mov dword [ebp - 0xa8], ebx
mov dword [ebp - 0xac], edi
mov word [ebp - 0xbc], ax
call fcn.00401b70
xor ecx, ecx
mov eax, esi
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], edi
mov word [ebp - 0x20], cx
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4407a0
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [ebp - 0x20]
call fcn.00401b70
lea edx, [ebp - 0xbc]
push edx
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x58]
push ecx
call fcn.0046cb20
add esp, 4
push eax
call fcn.004217a0
mov ebx, 8
add esp, 0xc
mov esi, eax
cmp dword [ebp - 0x44], ebx
jb 0x4407f1
mov edx, dword [ebp - 0x58]
push edx
call fcn.00480102
add esp, 4
xor eax, eax
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], edi
mov word [ebp - 0x58], ax
cmp dword [ebp - 0xc], ebx
jb 0x440812
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.00480102
add esp, 4
xor edx, edx
mov dword [ebp - 0xc], 7
mov dword [ebp - 0x10], edi
mov word [ebp - 0x20], dx
cmp dword [ebp - 0xa8], ebx
jb 0x440839
mov eax, dword [ebp - 0xbc]
push eax
call fcn.00480102
add esp, 4
xor ecx, ecx
mov dword [ebp - 0xa8], 7
mov dword [ebp - 0xac], edi
mov word [ebp - 0xbc], cx
cmp esi, edi
je 0x440877
cmp esi, 0xffffffff
je 0x440877
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00480264
mov esp, ebp
pop ebp
ret 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
shl edi, 0x10
or edi, 0xfc19
test esi, esi
je 0x440898
cmp esi, 0xffffffff
je 0x440898
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00480264
mov esp, ebp
pop ebp
ret 0x10
lea edx, [ebp - 0x74]
push edx
call fcn.004230e0
push eax
call fcn.004404d0
mov ebx, 8
add esp, 8
cmp dword [ebp - 0x60], ebx
jb 0x4408d5
mov eax, dword [ebp - 0x74]
push eax
call fcn.00480102
add esp, 4
or esi, 0xffffffff
call fcn.0046d050
xor edi, edi
test al, al
jne 0x440a6f
push edi
call fcn.0046cfd0
add esp, 4
test al, al
jne 0x440a6f
lea ecx, [ebp - 0x158]
call fcn.00401cc0
xor ecx, ecx
lea edx, [ebp - 0xfc]
mov word [ebp - 0xfc], cx
push edx
lea ecx, [ebp - 0x158]
mov dword [ebp - 0xe8], 7
mov dword [ebp - 0xec], edi
call fcn.00402b70
mov edi, eax
cmp dword [ebp - 0xe8], ebx
jb 0x440947
mov eax, dword [ebp - 0xfc]
push eax
call fcn.00480102
add esp, 4
cmp edi, 0xffffffff
je 0x440956
cmp di, 1
jne 0x440a34
push 0
call fcn.0046c340
add esp, 4
test al, al
jne 0x440a08
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea edx, [ebp - 0xa0]
push edx
call fcn.0041f650
lea eax, [ebp - 0xa0]
push eax
call fcn.004403d0
add esp, 0xc
test al, al
je 0x4409d0
mov eax, dword [ebp - 0xa0]
push 0x552f70
add eax, 0x1c
push eax
lea ecx, [ebp - 0xc0]
push ecx
lea ecx, [ebp - 0xa0]
call fcn.00440630
mov eax, dword [ebp - 0xa0]
push str._prometheus
add eax, 0x1c
push eax
lea edx, [ebp - 0xc4]
push edx
lea ecx, [ebp - 0xa0]
call fcn.00440630
lea eax, [ebp - 0xa0]
push eax
lea ecx, [ebp - 0x90]
push ecx
call fcn.0041bb30
add esp, 8
push eax
lea ecx, [ebp - 0x158]
call fcn.004013b0
lea ecx, [ebp - 0x90]
call fcn.0046e6d0
lea ecx, [ebp - 0xa0]
call fcn.00402a70
lea edx, [ebp - 0x158]
push edx
lea ecx, [ebp - 0x12c]
call fcn.004236a0
push 0
lea ecx, [ebp - 0x12c]
call fcn.00423500
lea ecx, [ebp - 0x12c]
mov edi, eax
call fcn.004235e0
lea ecx, [ebp - 0x158]
call fcn.00401400
mov al, byte [0x59368c]
test al, al
je 0x440a57
push 0
push str.PrometheusExit
call fcn.0043d100
add esp, 8
call fcn.0043d200
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x440ba4
lea ecx, [ebp - 0x184]
call fcn.00401cc0
xor ecx, ecx
lea edx, [ebp - 0xe0]
mov word [ebp - 0xe0], cx
push edx
lea ecx, [ebp - 0x184]
mov dword [ebp - 0xcc], 7
mov dword [ebp - 0xd0], edi
call fcn.00402b70
mov esi, eax
cmp dword [ebp - 0xcc], ebx
jb 0x440abe
mov eax, dword [ebp - 0xe0]
push eax
call fcn.00480102
add esp, 4
cmp esi, 0xffffffff
je 0x440acd
cmp si, 1
jne 0x440b99
lea edx, [ebp - 0x184]
push edx
lea ecx, [ebp - 0x114]
call fcn.004236a0
push 2
lea ecx, [ebp - 0x114]
call fcn.00423500
mov esi, eax
cmp esi, 0xffffffff
je 0x440afd
cmp si, 1
jne 0x440b8e
call fcn.0046d050
test al, al
je 0x440b29
cmp dword [0x5933d4], edi
je 0x440b29
mov ecx, dword [0x5933ac]
mov edx, dword [0x5933a8]
push 0x54f510
push ecx
push edx
call fcn.00425840
add esp, 0xc
mov edx, dword [0x59338c]
lea ecx, [ebp - 0x3c]
push ecx
xor eax, eax
push edx
mov dword [ebp - 0x28], 7
mov dword [ebp - 0x2c], edi
mov word [ebp - 0x3c], ax
call fcn.0041fb40
add esp, 8
test al, al
je 0x440b6e
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x184]
call fcn.004013b0
mov ecx, dword [ebp - 0x110]
cmp ecx, edi
je 0x440b6e
call fcn.00425490
push 1
lea ecx, [ebp - 0x114]
call fcn.00423500
mov esi, eax
cmp dword [ebp - 0x28], ebx
jb 0x440b8e
mov ecx, dword [ebp - 0x3c]
push ecx
call fcn.00480102
add esp, 4
lea ecx, [ebp - 0x114]
call fcn.004235e0
lea ecx, [ebp - 0x184]
call fcn.00401400
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00480264
mov esp, ebp
pop ebp
ret 0x10