Function at 0x40dad4
Capabilities:
Accept command line arguments
Set current directory

Disassembly:
push ebp
lea ebp, [esp - 0x5b0]
sub esp, 0x630
mov eax, dword [0x480900]
xor eax, ebp
mov dword [ebp + 0x5ac], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0x5b8]
mov dword [ebp - 0x7c], edi
call fcn.0041329e
lea eax, [ebp - 0x80]
push eax
call fcn.0040b86e
pop ecx
cmp eax, 1
je 0x40db4e
cmp eax, 2
je 0x40db4e
xor esi, esi
cmp eax, 0xfffffffe
jne 0x40db6a
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov ebx, eax
lea eax, [ebp - 0x70]
push eax
mov dword [ebp - 0x70], esi
call fcn.00410a13
pop ecx
test eax, eax
je 0x40db6a
cmp dword [ebp - 0x70], esi
jne 0x40db6a
push 0x46a26c
push ebx
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
jne 0x40db6a
call fcn.00416d7d
xor eax, eax
mov ecx, dword [ebp + 0x5ac]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044cbcc
add ebp, 0x5b0
leave
ret 0x10
push 0x3400
call fcn.00407a70
mov dword [esp], 0x1417
call fcn.00407a70
pop ecx
push edi
mov ecx, 0x4845f0
call fcn.00418529
call fcn.0041497b
push esi
call dword [sym.imp.ole32.dll_CoInitialize]
xor eax, eax
mov ebx, 0x206
push ebx
mov word [ebp - 0x6c], ax
lea eax, [ebp - 0x6a]
push esi
push eax
call fcn.0044c960
add esp, 0xc
mov edi, 0x104
push edi
lea eax, [ebp - 0x6c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor eax, eax
push ebx
mov word [ebp + 0x3a4], ax
lea eax, [ebp + 0x3a6]
push esi
push eax
call fcn.0044c960
add esp, 0xc
push edi
lea eax, [ebp + 0x3a4]
push eax
push dword [0x485624]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp + 0x3a4]
push eax
lea ecx, [ebp - 0x70]
call fcn.0040b6b5
push 0x5c
lea ecx, [ebp - 0x70]
call fcn.004082f6
push eax
push esi
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0x70]
call fcn.0040b712
push eax
lea ecx, [ebp - 0x70]
call fcn.0040ad14
lea ecx, [ebp - 0x74]
call fcn.00408318
push 0x5c
lea ecx, [ebp - 0x70]
call fcn.004082f6
push eax
push esi
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0x70]
call fcn.0040b712
push eax
lea ecx, [ebp - 0x70]
call fcn.0040ad14
lea ecx, [ebp - 0x74]
call fcn.00408318
push str.Config_newui_themesdefault_
lea ecx, [ebp - 0x70]
call fcn.00409730
push dword [ebp - 0x70]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
xor eax, eax
push ebx
mov word [ebp + 0x19c], ax
push esi
lea eax, [ebp + 0x19e]
push eax
call fcn.0044c960
mov ebx, str.sites.dll
push ebx
lea eax, [ebp + 0x19c]
push edi
push eax
call fcn.00412517
lea eax, [ebp + 0x19c]
push eax
call fcn.0040aa22
push 1
call fcn.0040777d
add esp, 0x20
push esi
push esi
push esi
push esi
call dword [sym.imp.USER32.dll_DefWindowProcW]
push 4
call fcn.00407b59
pop ecx
push ebx
lea ecx, [ebp - 0x78]
call fcn.00408546
mov eax, 0x4845ec
push esi
push eax
push 0x46a1bc
lea ecx, [ebp - 0x78]
mov dword [ebp - 0x74], eax
call fcn.0040a77f
push esi
push dword [ebp - 0x7c]
push esi
mov esi, 0x482344
mov ecx, esi
call fcn.004081fa
call fcn.004114a4
test eax, eax
jne 0x40dd00
lea ecx, [ebp - 0x70]
call fcn.00408318
jmp 0x40db4e
call fcn.004093ec
call fcn.0040daa8
mov ecx, eax
call fcn.0044751f
push dword [ebp + 0x5c4]
push dword [ebp + 0x5c0]
call fcn.0040d5ed
pop ecx
pop ecx
mov edi, eax
call fcn.0040daa8
mov ecx, eax
call fcn.00445c45
call fcn.0040d997
mov ecx, eax
call fcn.00416e25
mov ecx, esi
call fcn.0040ac5d
call dword [sym.imp.ole32.dll_CoUninitialize]
lea ecx, [ebp - 0x70]
call fcn.00408318
mov eax, edi
jmp 0x40db50