Function at 0x470ea0
Capabilities:
Accept command line arguments
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bdc51
mov eax, dword fs:[0]
push eax
sub esp, 0x418
mov eax, dword [0x621d30]
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 edi, ecx
call fcn.0048b079
mov eax, dword [edi + 0x12114]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push eax
mov eax, dword [edi + 0x20]
push 1
push 0x80
push eax
call esi
mov eax, dword [edi + 0x12114]
mov ecx, dword [edi + 0x20]
push eax
push 0
push 0x80
push ecx
call esi
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
jns 0x470f2a
push 0
push 0x5f33f0
push str.com
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0
call fcn.005936c8
push 0x5c6a3c
call fcn.004a51a9
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x216]
push eax
mov word [ebp - 0x218], dx
call fcn.00594660
add esp, 0xc
lea ecx, [ebp - 0x218]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea edx, [ebp - 0x218]
push edx
push str._s_d_x
push 0x62d3c0
call fcn.00453640
call fcn.004895f0
mov eax, dword [0x62d3c0]
push eax
call fcn.00593730
push 0x208
lea ecx, [ebp - 0x218]
push 0
push ecx
call fcn.00594660
add esp, 0x24
lea edx, [ebp - 0x218]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, dword [0x62d3c0]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
call fcn.00474b50
call fcn.0046f420
cmp dword [0x63e3c8], 0
jbe 0x471033
mov eax, dword [0x62d408]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x420], esp
mov esi, esp
push eax
call fcn.00453e70
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], 0
mov ecx, esp
mov dword [ebp - 0x41c], esp
push 0x62d3c8
call fcn.00454490
push edi
mov dword [ebp - 4], 0xffffffff
call fcn.00471290
push 1
mov ecx, 0x62d3c8
call fcn.004700b0
mov dword [0x62d280], edi
mov ecx, dword [edi + 0x20]
push 0
push ecx
call dword [sym.imp.USER32.dll_GetSystemMenu]
push eax
call fcn.004ab43f
mov esi, eax
test esi, esi
je 0x47108d
cmp byte [edi + 0x120d8], 0
mov ebx, dword [sym.imp.USER32.dll_GetMenuItemID]
jne 0x47106f
mov edx, dword [esi + 4]
push 3
push edx
call ebx
push 3
push eax
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_EnableMenuItem]
cmp byte [edi + 0x120d9], 0
jne 0x47108d
mov ecx, dword [esi + 4]
push 4
push ecx
call ebx
mov edx, dword [esi + 4]
push 3
push eax
push edx
call dword [sym.imp.USER32.dll_EnableMenuItem]
call fcn.00489070
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov ecx, str.tcdebug
lea ecx, [ecx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4710c6
test dx, dx
je 0x4710c2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4710c6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4710a0
xor eax, eax
jmp 0x4710cb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4710d8
mov byte [edi + 0x12110], 1
jmp 0x4710df
mov byte [edi + 0x12110], 0
call fcn.0048a293
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4710f9
push 0x80004005
call fcn.00453e40
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x41c], eax
mov dword [ebp - 4], 1
mov ecx, dword [0x62d3c0]
push ecx
lea edx, [ebp - 0x41c]
push str._s_api.xml
push edx
call fcn.00453640
add esp, 0xc
call fcn.0048a293
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x471147
push 0x80004005
call fcn.00453e40
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x420], eax
mov byte [ebp - 4], 2
mov ecx, dword [0x62d3c0]
push ecx
lea edx, [ebp - 0x420]
push str._s_sourseTemp.bak
push edx
call fcn.00453640
xor eax, eax
push 0x1fe
push eax
lea ecx, [ebp - 0x416]
push ecx
mov word [ebp - 0x418], ax
call fcn.00594660
movzx eax, byte [edi + 0x12110]
mov ecx, dword [ebp - 0x41c]
mov esi, dword [ebp - 0x420]
lea edx, [ebp - 0x418]
push edx
push eax
push ecx
push esi
call dword [0x62d268]
mov edx, dword [edi + 0x20]
push edx
call dword [0x62d26c]
mov eax, dword [0x62d3c0]
push eax
call dword [0x62d270]
add esp, 0x30
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov edx, dword [edi + 0x20]
push 1
push 0
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov ecx, dword [0x62d284]
test ecx, ecx
je 0x4711f6
call fcn.0048d9e7
mov edi, dword [edi + 0x120c8]
push ecx
sub edi, 0x10
mov dword [ebp - 0x424], esp
mov ebx, esp
push edi
call fcn.00453e70
add eax, 0x10
add esp, 4
mov dword [ebx], eax
call fcn.004892c0
lea eax, [esi - 0x10]
add esp, 4
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47123e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x41c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x471267
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
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.005909d4
mov esp, ebp
pop ebp
ret