Function at 0x4185c0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x46759c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [0x468d20], eax
call fcn.00429b00
mov dword [ebp - 0x178], eax
push str.show_console
push 0x454f9c
mov ecx, dword [ebp - 0x178]
call fcn.00406640
mov ecx, eax
call fcn.00406640
mov ecx, eax
call fcn.004066b0
mov byte [ebp - 0x1c1], al
lea ecx, [ebp - 0x20]
push ecx
push str.log_level
push 0x454fec
mov ecx, dword [ebp - 0x178]
call fcn.00406640
mov ecx, eax
call fcn.00406640
mov ecx, eax
call fcn.00406d00
lea edx, [ebp - 0x20]
push edx
lea ecx, [ebp - 0x1c0]
call fcn.00406fb0
lea ecx, [ebp - 0x20]
call fcn.00407160
lea eax, [ebp - 0x3c]
push eax
push str.log_file
push str.debugging
mov ecx, dword [ebp - 0x178]
call fcn.00406640
mov ecx, eax
call fcn.00406640
mov ecx, eax
call fcn.00406d00
lea ecx, [ebp - 0x3c]
push ecx
lea ecx, [ebp - 0x174]
call fcn.00406fb0
lea ecx, [ebp - 0x3c]
call fcn.00407160
lea ecx, [ebp - 0x174]
call fcn.00408820
test eax, eax
je 0x418737
lea edx, [ebp - 0x174]
push edx
push 0x455070
lea eax, [ebp - 0x58]
push eax
call fcn.004121d0
add esp, 4
push eax
lea ecx, [ebp - 0x74]
push ecx
call fcn.0040c250
add esp, 0xc
push eax
lea edx, [ebp - 0x90]
push edx
call fcn.0040c320
add esp, 0xc
push eax
lea ecx, [ebp - 0x174]
call fcn.00407130
lea ecx, [ebp - 0x90]
call fcn.00407160
lea ecx, [ebp - 0x74]
call fcn.00407160
lea ecx, [ebp - 0x58]
call fcn.00407160
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x248], esp
lea eax, [ebp - 0x174]
push eax
call fcn.00406fb0
lea ecx, [ebp - 0xac]
push ecx
call fcn.00412d10
add esp, 0x20
push eax
lea ecx, [ebp - 0x174]
call fcn.00407130
lea ecx, [ebp - 0xac]
call fcn.00407160
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x24c], esp
lea edx, [ebp - 0x174]
push edx
call fcn.00406fb0
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x250], esp
lea eax, [ebp - 0x1c0]
push eax
call fcn.00406fb0
movzx ecx, byte [ebp - 0x1c1]
push ecx
call fcn.004191c0
add esp, 0x3c
xor edx, edx
je 0x41877b
jmp 0x4187be
call fcn.0040bd10
cmp dword [eax], 2
jl 0x41878f
call fcn.00406400
cmp dword [eax], 0
jne 0x418791
jmp 0x4187be
push 0x455074
push 2
lea ecx, [ebp - 0x2f0]
call fcn.00406430
mov ecx, eax
call fcn.0040bab0
push eax
call fcn.0040bd20
add esp, 8
lea ecx, [ebp - 0x2f0]
call fcn.00406450
xor eax, eax
je 0x4187c4
jmp 0x418807
call fcn.0040bd10
cmp dword [eax], 2
jl 0x4187d8
call fcn.00406400
cmp dword [eax], 0
jne 0x4187da
jmp 0x418807
push str.Started_application
push 2
lea ecx, [ebp - 0x390]
call fcn.00406430
mov ecx, eax
call fcn.0040bab0
push eax
call fcn.0040bd20
add esp, 8
lea ecx, [ebp - 0x390]
call fcn.00406450
lea ecx, [ebp - 0x174]
call fcn.00408820
test eax, eax
je 0x418871
xor ecx, ecx
je 0x41881c
jmp 0x41886f
call fcn.0040bd10
cmp dword [eax], 2
jl 0x418830
call fcn.00406400
cmp dword [eax], 0
jne 0x418832
jmp 0x41886f
lea edx, [ebp - 0x174]
push edx
push str.Logging_to:
push 2
lea ecx, [ebp - 0x430]
call fcn.00406430
mov ecx, eax
call fcn.0040bab0
push eax
call fcn.0040bd20
add esp, 8
push eax
call fcn.0040c360
add esp, 8
lea ecx, [ebp - 0x430]
call fcn.00406450
jmp 0x4188ba
xor eax, eax
je 0x418877
jmp 0x4188ba
call fcn.0040bd10
cmp dword [eax], 2
jl 0x41888b
call fcn.00406400
cmp dword [eax], 0
jne 0x41888d
jmp 0x4188ba
push str.No_logging_file_set
push 2
lea ecx, [ebp - 0x4d0]
call fcn.00406430
mov ecx, eax
call fcn.0040bab0
push eax
call fcn.0040bd20
add esp, 8
lea ecx, [ebp - 0x4d0]
call fcn.00406450
xor ecx, ecx
je 0x4188c0
jmp 0x41892f
call fcn.0040bd10
cmp dword [eax], 2
jl 0x4188d4
call fcn.00406400
cmp dword [eax], 0
jne 0x4188d6
jmp 0x41892f
call fcn.0040bd10
mov edx, dword [eax]
push edx
lea eax, [ebp - 0xc8]
push eax
call fcn.004111c0
add esp, 8
push eax
push str.Log_level_
push 2
lea ecx, [ebp - 0x570]
call fcn.00406430
mov ecx, eax
call fcn.0040bab0
push eax
call fcn.0040bd20
add esp, 8
push eax
call fcn.0040c360
add esp, 8
lea ecx, [ebp - 0x570]
call fcn.00406450
lea ecx, [ebp - 0xc8]
call fcn.00407160
lea ecx, [ebp - 0x158]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 0x17c], eax
cmp dword [ebp - 0x17c], 0
je 0x418a84
mov dword [ebp - 0x1e4], 0
jmp 0x418971
mov edx, dword [ebp - 0x1e4]
add edx, 1
mov dword [ebp - 0x1e4], edx
mov eax, dword [ebp - 0x1e4]
cmp eax, dword [ebp - 0x158]
jge 0x418a82
mov ecx, dword [ebp - 0x1e4]
mov edx, dword [ebp - 0x17c]
mov eax, dword [edx + ecx*4]
push eax
lea ecx, [ebp - 0xe4]
call fcn.00407290
push eax
lea ecx, [ebp - 0x200]
push ecx
call fcn.0042a230
add esp, 8
lea ecx, [ebp - 0xe4]
call fcn.00407340
push 0
push 0x4550f8
lea ecx, [ebp - 0x200]
call fcn.00413410
mov dword [ebp - 0x204], eax
mov edx, dword [ebp - 0x204]
cmp edx, dword [0x454784]
je 0x418a72
mov eax, dword [ebp - 0x204]
push eax
push 0
lea ecx, [ebp - 0x23c]
push ecx
lea ecx, [ebp - 0x200]
call fcn.00413470
mov edx, dword [0x454784]
push edx
mov eax, dword [ebp - 0x204]
add eax, 1
push eax
lea ecx, [ebp - 0x220]
push ecx
lea ecx, [ebp - 0x200]
call fcn.00413470
push str.__cgi_environment
lea edx, [ebp - 0x23c]
push edx
call fcn.00419dc0
add esp, 8
movzx eax, al
test eax, eax
je 0x418a5c
lea ecx, [ebp - 0x220]
call fcn.00408820
test eax, eax
je 0x418a5c
lea ecx, [ebp - 0x220]
push ecx
mov ecx, 0x468d24
call fcn.00409cc0
lea ecx, [ebp - 0x220]
call fcn.00407160
lea ecx, [ebp - 0x23c]
call fcn.00407160
lea ecx, [ebp - 0x200]
call fcn.00407160
jmp 0x418962
jmp 0x418acd
xor edx, edx
je 0x418a8a
jmp 0x418acd
call fcn.0040bd10
cmp dword [eax], 1
jl 0x418a9e
call fcn.00406400
cmp dword [eax], 0
jne 0x418aa0
jmp 0x418acd
push str.CommandLineToArgvW___failed
push 1
lea ecx, [ebp - 0x610]
call fcn.00406430
mov ecx, eax
call fcn.0040bab0
push eax
call fcn.0040bd20
add esp, 8
lea ecx, [ebp - 0x610]
call fcn.00406450
lea eax, [ebp - 0x100]
push eax
push str.title
push 0x45512c
mov ecx, dword [ebp - 0x178]
call fcn.00406640
mov ecx, eax
call fcn.00406640
mov ecx, eax
call fcn.00406d00
lea ecx, [ebp - 0x100]
push ecx
lea ecx, [ebp - 0x1e0]
call fcn.00406fb0
lea ecx, [ebp - 0x100]
call fcn.00407160
lea ecx, [ebp - 0x1e0]
call fcn.004071e0
movzx edx, al
test edx, edx
je 0x418b4c
lea eax, [ebp - 0x11c]
push eax
call fcn.00412540
add esp, 4
push eax
lea ecx, [ebp - 0x1e0]
call fcn.00407130
lea ecx, [ebp - 0x11c]
call fcn.00407160
push str.single_instance_guid
push str.application
mov ecx, dword [ebp - 0x178]
call fcn.00406640
mov ecx, eax
call fcn.00406640
mov ecx, eax
call fcn.00406e90
mov dword [ebp - 0x180], eax
cmp dword [ebp - 0x180], 0
je 0x418bf0
mov ecx, dword [ebp - 0x180]
movsx edx, byte [ecx]
test edx, edx
je 0x418bf0
mov eax, dword [ebp - 0x180]
push eax
call fcn.00432f40
add esp, 4
add eax, 1
mov dword [ebp - 0x240], eax
xor ecx, ecx
mov eax, dword [ebp - 0x240]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00430ac7
add esp, 4
mov dword [ebp - 0x614], eax
mov eax, dword [ebp - 0x614]
mov dword [0x468b18], eax
mov ecx, dword [ebp - 0x240]
push ecx
mov edx, dword [0x468b18]
push edx
mov eax, dword [ebp - 0x180]
push eax
call fcn.00429ed0
add esp, 0xc
cmp dword [0x468b18], 0
je 0x418cb4
mov ecx, dword [0x468b18]
movzx edx, word [ecx]
test edx, edx
je 0x418cb4
mov eax, dword [0x468b18]
push eax
mov ecx, 0x468d40
call fcn.004193e0
mov ecx, 0x468d40
call fcn.00419410
movzx ecx, al
test ecx, ecx
je 0x418cb4
push 0
mov edx, dword [0x468b18]
push edx
call dword [sym.imp.USER32.dll_FindWindowW]
mov dword [ebp - 0x244], eax
cmp dword [ebp - 0x244], 0
je 0x418cb4
mov eax, dword [ebp - 0x244]
push eax
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x418c71
push 9
mov ecx, dword [ebp - 0x244]
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [ebp - 0x244]
push edx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov dword [ebp - 0x618], 0
lea ecx, [ebp - 0x1e0]
call fcn.00407160
lea ecx, [ebp - 0x174]
call fcn.00407160
lea ecx, [ebp - 0x1c0]
call fcn.00407160
mov eax, dword [ebp - 0x618]
jmp 0x418f11
cmp dword [0x468b18], 0
je 0x418cdc
mov eax, dword [0x468b18]
push eax
push 0x455164
push 0x100
push 0x468b20
call fcn.004324f3
add esp, 0x10
jmp 0x418d30
lea ecx, [ebp - 0x138]
push ecx
call fcn.00412540
add esp, 4
push eax
lea edx, [ebp - 0x154]
push edx
call fcn.0042a000
add esp, 8
mov ecx, eax
call fcn.004073c0
push eax
push 0x45516c
push 0x100
push 0x468b20
call fcn.004324f3
add esp, 0x10
lea ecx, [ebp - 0x154]
call fcn.00407340
lea ecx, [ebp - 0x138]
call fcn.00407160
call fcn.0042b860
movzx eax, al
test eax, eax
jne 0x418d5b
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x61c], esp
push str.Could_not_start_internal_web_server._nExiting_application.
call fcn.004070b0
push 0
call fcn.00412980
add esp, 0x20
push 0
call dword [sym.imp.ole32.dll_OleInitialize]
mov dword [ebp - 0x1a4], eax
call fcn.004178e0
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x620], esp
lea edx, [ebp - 0x1e0]
push edx
call fcn.00406fb0
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00418f30
add esp, 0x24
push 0
push 0
push 0
lea edx, [ebp - 0x19c]
push edx
call dword [sym.imp.USER32.dll_GetMessageW]
mov dword [ebp - 0x1a0], eax
cmp dword [ebp - 0x1a0], 0
je 0x418e46
cmp dword [ebp - 0x1a0], 0xffffffff
jne 0x418e11
xor eax, eax
je 0x418dca
jmp 0x418e0d
call fcn.0040bd10
cmp dword [eax], 0
jl 0x418dde
call fcn.00406400
cmp dword [eax], 0
jne 0x418de0
jmp 0x418e0d
push str.WinMain.GetMessage___returned__1
push 0
lea ecx, [ebp - 0x6c0]
call fcn.00406430
mov ecx, eax
call fcn.0040bab0
push eax
call fcn.0040bd20
add esp, 8
lea ecx, [ebp - 0x6c0]
call fcn.00406450
jmp 0x418e46
lea ecx, [ebp - 0x19c]
push ecx
call fcn.004184a0
add esp, 4
movzx edx, al
test edx, edx
jne 0x418e41
lea eax, [ebp - 0x19c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea ecx, [ebp - 0x19c]
push ecx
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x418d95
call dword [sym.imp.ole32.dll_OleUninitialize]
xor edx, edx
je 0x418e52
jmp 0x418e95
call fcn.0040bd10
cmp dword [eax], 2
jl 0x418e66
call fcn.00406400
cmp dword [eax], 0
jne 0x418e68
jmp 0x418e95
push str.Ended_application
push 2
lea ecx, [ebp - 0x760]
call fcn.00406430
mov ecx, eax
call fcn.0040bab0
push eax
call fcn.0040bd20
add esp, 8
lea ecx, [ebp - 0x760]
call fcn.00406450
xor eax, eax
je 0x418e9b
jmp 0x418ede
call fcn.0040bd10
cmp dword [eax], 2
jl 0x418eaf
call fcn.00406400
cmp dword [eax], 0
jne 0x418eb1
jmp 0x418ede
push str.________________________________________________________
push 2
lea ecx, [ebp - 0x800]
call fcn.00406430
mov ecx, eax
call fcn.0040bab0
push eax
call fcn.0040bd20
add esp, 8
lea ecx, [ebp - 0x800]
call fcn.00406450
mov ecx, dword [ebp - 0x1a0]
mov dword [ebp - 0x804], ecx
lea ecx, [ebp - 0x1e0]
call fcn.00407160
lea ecx, [ebp - 0x174]
call fcn.00407160
lea ecx, [ebp - 0x1c0]
call fcn.00407160
mov eax, dword [ebp - 0x804]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004320d5
mov esp, ebp
pop ebp
ret 0x10