Function at 0x413910
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53c9d5
mov eax, dword fs:[0]
push eax
sub esp, 0x488
mov eax, dword [0x5854b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [0x58a140], eax
push 0x208
push 0
lea ecx, [ebp - 0x420]
push ecx
call fcn.00511800
add esp, 0xc
lea edx, [ebp - 0x420]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
call fcn.0041e560
lea eax, [ebp - 0x420]
push eax
push str.WorkPath__s
call fcn.00422820
add esp, 8
push 0x208
push 0
lea ecx, [ebp - 0x218]
push ecx
call fcn.00511800
add esp, 0xc
push 0x104
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x420]
push ecx
call fcn.0051ac59
add esp, 8
test eax, eax
je 0x4139e7
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea eax, [ebp - 0x218]
push eax
push str.set_WorkPath__s
call fcn.00422820
add esp, 8
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
mov dword [ebp - 0x45c], eax
push 0
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_DefWindowProcW]
push 4
call fcn.00412d20
add esp, 4
push 0x5493fc
push 0
call fcn.0051b032
add esp, 8
push 0
mov ecx, dword [0x58a140]
push ecx
push 0
mov ecx, 0x58a1b0
call fcn.00413720
mov edx, dword [ebp + 0xc]
push edx
call fcn.00413500
mov ecx, eax
call fcn.0040bd70
call fcn.00413e80
push 0
push 0
push 0
lea ecx, [ebp - 0x494]
call fcn.00411730
push 0
lea eax, [ebp - 0x494]
push eax
lea ecx, [ebp - 0x458]
push ecx
call sub.gdiplus.dll_GdiplusStartup
mov edx, dword [ebp + 8]
push edx
call fcn.00414300
add esp, 4
push 0x549468
lea ecx, [ebp - 0x434]
call fcn.004060d0
mov dword [ebp - 4], 0
push 0x549470
lea ecx, [ebp - 0x430]
call fcn.004060d0
mov byte [ebp - 4], 1
sub esp, 0x28
mov ecx, esp
mov dword [ebp - 0x460], esp
push 0
call fcn.00406190
mov dword [ebp - 0x464], eax
mov byte [ebp - 4], 2
push 0
push 0
lea eax, [ebp - 0x434]
push eax
lea ecx, [ebp - 0x430]
push ecx
call fcn.004082d0
mov byte [ebp - 4], 1
mov ecx, eax
call fcn.00422590
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x430]
call fcn.004067d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x434]
call fcn.004067d0
mov dword [ebp - 0x424], 0
mov ecx, 0x58a188
call fcn.00423190
test eax, eax
jne 0x413b36
push str.CheckSingleInstance_failed__exit
call fcn.00422820
add esp, 4
mov dword [ebp - 0x424], 8
jmp 0x413d99
call fcn.00413f90
call fcn.0041e560
mov dword [ebp - 0x428], eax
mov edx, dword [ebp - 0x428]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x428]
mov edx, dword [eax]
call edx
mov dword [ebp - 0x42c], eax
cmp dword [ebp - 0x42c], 0
je 0x413c1a
push str.fail_task
lea ecx, [ebp - 0x43c]
call fcn.004060d0
mov dword [ebp - 4], 3
push 0x5494d4
lea ecx, [ebp - 0x438]
call fcn.004060d0
mov byte [ebp - 4], 4
sub esp, 0x28
mov ecx, esp
mov dword [ebp - 0x468], esp
push 0
call fcn.00406190
mov dword [ebp - 0x46c], eax
mov byte [ebp - 4], 5
push 0
push 0
lea eax, [ebp - 0x43c]
push eax
lea ecx, [ebp - 0x438]
push ecx
call fcn.004082d0
mov byte [ebp - 4], 4
mov ecx, eax
call fcn.00422590
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x438]
call fcn.004067d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x43c]
call fcn.004067d0
mov edx, dword [ebp - 0x42c]
push edx
push str.pre_init_check_failed__ret___d
call fcn.00422820
add esp, 8
mov eax, dword [ebp - 0x42c]
mov dword [ebp - 0x424], eax
jmp 0x413d99
push str.app.gmsuo
push 0x549534
push 0x201
mov ecx, dword [0x58a140]
push ecx
mov edx, dword [ebp - 0x428]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x428]
mov edx, dword [eax + 4]
call edx
test eax, eax
jne 0x413cf1
push str.init_config_failed__exit
call fcn.00422820
add esp, 4
push str.fail_config
lea ecx, [ebp - 0x444]
call fcn.004060d0
mov dword [ebp - 4], 6
push 0x549590
lea ecx, [ebp - 0x440]
call fcn.004060d0
mov byte [ebp - 4], 7
sub esp, 0x28
mov ecx, esp
mov dword [ebp - 0x470], esp
push 0
call fcn.00406190
mov dword [ebp - 0x474], eax
mov byte [ebp - 4], 8
push 0
push 0
lea eax, [ebp - 0x444]
push eax
lea ecx, [ebp - 0x440]
push ecx
call fcn.004082d0
mov byte [ebp - 4], 7
mov ecx, eax
call fcn.00422590
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x440]
call fcn.004067d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x444]
call fcn.004067d0
mov dword [ebp - 0x424], 9
jmp 0x413d99
push str.show
lea ecx, [ebp - 0x44c]
call fcn.004060d0
mov dword [ebp - 4], 9
push 0x5495a8
lea ecx, [ebp - 0x448]
call fcn.004060d0
mov byte [ebp - 4], 0xa
sub esp, 0x28
mov ecx, esp
mov dword [ebp - 0x478], esp
push 0
call fcn.00406190
mov dword [ebp - 0x47c], eax
mov byte [ebp - 4], 0xb
push 0
push 0
lea edx, [ebp - 0x44c]
push edx
lea eax, [ebp - 0x448]
push eax
call fcn.004082d0
mov byte [ebp - 4], 0xa
mov ecx, eax
call fcn.00422590
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x448]
call fcn.004067d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44c]
call fcn.004067d0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.00416410
add esp, 8
mov dword [ebp - 0x424], eax
xor eax, eax
jne 0x413b0c
mov ecx, 0x58a188
call fcn.004232a0
call fcn.0041e710
mov ecx, dword [ebp - 0x458]
push ecx
call sub.gdiplus.dll_GdiplusShutdown
push str.exit_all
lea ecx, [ebp - 0x454]
call fcn.004060d0
mov dword [ebp - 4], 0xc
push str.unpkg
lea ecx, [ebp - 0x450]
call fcn.004060d0
mov byte [ebp - 4], 0xd
sub esp, 0x28
mov ecx, esp
mov dword [ebp - 0x480], esp
push 0
call fcn.00406190
mov dword [ebp - 0x484], eax
mov byte [ebp - 4], 0xe
push 0
push 0
lea edx, [ebp - 0x454]
push edx
lea eax, [ebp - 0x450]
push eax
call fcn.004082d0
mov byte [ebp - 4], 0xd
mov ecx, eax
call fcn.00422590
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x450]
call fcn.004067d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x454]
call fcn.004067d0
mov ecx, 0x58a1b0
call fcn.004169d0
call dword [sym.imp.ole32.dll_CoUninitialize]
push 0x5dc
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x424]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d77de
mov esp, ebp
pop ebp
ret