Function at 0x40e839
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x492e84
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x50], esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov ecx, eax
lea edi, [ecx + 2]
xor ebx, ebx
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x40e87d
sub ecx, edi
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00403bac
cmp dword [esi + 0x14], 8
jb 0x40e89d
mov esi, dword [esi]
lea ecx, [ebp - 0x60]
push esi
push ecx
call fcn.0040eb2f
add esp, 8
mov ecx, dword [ebp - 0x5c]
mov edi, dword [ebp - 0x60]
sub ecx, edi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 4], ebx
cmp eax, 1
jbe 0x40ea01
xor ecx, ecx
push 0xb
mov word [ebp - 0x2c], cx
push str._prometheus
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
call fcn.00403bac
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
mov byte [ebp - 4], 1
jae 0x40e900
lea eax, [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
push edx
push eax
mov eax, dword [edi + 0x2c]
push eax
push ebx
lea ecx, [edi + 0x1c]
call fcn.00409d74
test eax, eax
sete byte [ebp - 0x49]
cmp dword [ebp - 0x18], 8
mov byte [ebp - 4], bl
jb 0x40e92d
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.00404f07
add esp, 4
cmp byte [ebp - 0x49], bl
je 0x40e958
cmp edi, ebx
je 0x40e951
mov edx, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x5c]
push edx
lea eax, [ebp - 0x54]
push eax
push ecx
push edi
call fcn.0040b679
push edi
call fcn.00404f07
add esp, 0x14
xor al, al
jmp 0x40eb13
push 1
xor edx, edx
push 0x49e3c0
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], dx
call fcn.00403bac
mov eax, dword [ebp - 0x64]
push eax
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x48]
push edx
mov byte [ebp - 4], 2
call fcn.00405aad
add esp, 0xc
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
mov byte [ebp - 4], 3
jb 0x40e99e
mov eax, dword [eax]
push ecx
push eax
mov eax, dword [edi + 0x2c]
push eax
push ebx
lea ecx, [edi + 0x1c]
call fcn.00409d74
test eax, eax
mov esi, 8
sete byte [ebp - 0x49]
cmp dword [ebp - 0x34], esi
jb 0x40e9c9
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.00404f07
add esp, 4
xor edx, edx
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], dx
mov byte [ebp - 4], bl
cmp dword [ebp - 0x18], esi
jb 0x40e9ed
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00404f07
add esp, 4
cmp byte [ebp - 0x49], bl
je 0x40ea01
lea ecx, [ebp - 0x60]
call fcn.0040da6e
xor al, al
jmp 0x40eb13
xor ecx, ecx
push 1
mov word [ebp - 0x2c], cx
push 0x49e3c0
lea ecx, [ebp - 0x2c]
lea esi, [edi + 0x1c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
call fcn.00403bac
mov edx, dword [ebp - 0x64]
push edx
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x48]
push ecx
mov byte [ebp - 4], 4
call fcn.00405aad
add esp, 0xc
push eax
sub esi, edi
mov eax, 0x92492493
imul esi
add edx, esi
sar edx, 4
mov esi, edx
shr esi, 0x1f
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 5
add esi, edx
call fcn.004121d0
mov edx, dword [ebp - 0x5c]
lea ecx, [esi*8]
sub ecx, esi
mov esi, dword [ebp - 0x60]
lea eax, [edx - 0x1c]
lea ecx, [esi + ecx*4]
cmp ecx, eax
je 0x40ea87
cmp eax, edx
je 0x40ea87
push ebx
push ebx
push edx
push eax
push ecx
call fcn.0041df7f
add esp, 0x14
mov esi, 8
cmp dword [ebp - 0x34], esi
jb 0x40ea9d
mov edx, dword [ebp - 0x48]
push edx
call fcn.00404f07
add esp, 4
xor eax, eax
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], ax
mov byte [ebp - 4], bl
cmp dword [ebp - 0x18], esi
jb 0x40eac1
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.00404f07
add esp, 4
lea edx, [ebp - 0x60]
push edx
lea eax, [ebp - 0x48]
push eax
call fcn.00438b4d
add esp, 8
mov ecx, dword [ebp - 0x50]
push eax
mov byte [ebp - 4], 6
call fcn.00403c9c
cmp dword [ebp - 0x34], esi
jb 0x40eaef
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.00404f07
add esp, 4
mov esi, dword [ebp - 0x60]
cmp esi, ebx
je 0x40eb11
mov edx, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x5c]
push edx
lea eax, [ebp - 0x54]
push eax
push ecx
push esi
call fcn.0040b679
push esi
call fcn.00404f07
add esp, 0x14
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040330b
mov esp, ebp
pop ebp
ret