Function at 0x104626e
Capabilities:
Accept command line arguments
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x10cc
call fcn.01047540
mov eax, dword [0x107fa78]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor esi, esi
push 0x50
lea eax, [ebp - 0x10ac]
push esi
push eax
mov ebx, ecx
mov dword [ebp - 0x10bc], esi
mov dword [ebp - 0x10b4], esi
mov dword [ebp - 0x10b0], esi
mov dword [ebp - 0x10c0], esi
call sub.msvcrt.dll_memset
xor eax, eax
lea edi, [ebp - 0x10cc]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
cmp dword [ebx + 0x10], esi
stosd dword es:[edi], eax
je 0x10462cd
cmp dword [ebx + 0x50], esi
jne 0x10462e9
cmp dword [ebx + 0x44], 5
je 0x10462e9
push 0x1005790
push 2
call fcn.0105e573
mov eax, 0x8000ffff
jmp 0x10467fc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x100575c
push 4
call fcn.0105e5ad
add esp, 0xc
push 0x100574c
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
cmp edi, esi
mov dword [ebp - 0x10b8], edi
je 0x10463da
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1005738
push edi
call esi
test eax, eax
mov dword [ebp - 0x10b4], eax
jne 0x1046357
push 0x1005724
push edi
call esi
test eax, eax
mov dword [ebp - 0x10b4], eax
jne 0x1046357
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
and dword [ebp - 0x10b8], 0
jmp 0x10463d8
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edi, eax
test edi, edi
je 0x10463d8
mov esi, dword [sym.imp.msvcrt.dll_wcsstr]
push 0x1005704
push edi
call esi
test eax, eax
pop ecx
pop ecx
je 0x1046381
mov dword [ebp - 0x10bc], 1
push 0x1004854
push edi
call esi
test eax, eax
pop ecx
pop ecx
je 0x104639b
mov dword [ebp - 0x10b0], 1
jmp 0x10463d8
push 0x10056d4
push edi
call esi
test eax, eax
pop ecx
pop ecx
jne 0x10463c5
push 0x1004794
push edi
call esi
test eax, eax
pop ecx
pop ecx
jne 0x10463c5
push 0x1001e78
push edi
call esi
test eax, eax
pop ecx
pop ecx
je 0x10463d8
push 0x10056a4
push 4
call fcn.0105e573
and dword [ebp - 0x10b4], 0
xor esi, esi
xor eax, eax
cmp dword [ebp - 0x10bc], esi
push 0x1005694
setne al
push 0x40
mov dword [ebp - 0x10a8], esi
mov dword [ebp - 0x10a4], esi
mov dword [ebp - 0x10a0], esi
lea eax, [eax + eax + 0x64]
mov dword [ebp - 0x10ac], eax
lea eax, [ebp - 0x44]
push eax
call fcn.010460e1
lea eax, [ebp - 0x250]
push eax
mov esi, 0x105
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
mov edi, dword [sym.imp.USER32.dll_LoadStringW]
je 0x10464bb
call fcn.0105e7ec
test eax, eax
lea eax, [ebp - 0x250]
je 0x1046448
push 0x1005678
jmp 0x104644d
push 0x1005660
push esi
push eax
call fcn.01034cee
test eax, eax
jl 0x10464bb
lea eax, [ebp - 0x250]
push eax
call fcn.01056f43
test eax, eax
jne 0x104647f
cmp dword [ebp - 0x10b0], eax
jne 0x104647f
push esi
lea eax, [ebp - 0x45c]
push eax
push 0x81
jmp 0x10464a6
call fcn.0105bbd0
call fcn.01060a29
test eax, eax
je 0x1046499
push 1
mov ecx, 0x10820c8
call fcn.01059a9c
push esi
lea eax, [ebp - 0x45c]
push eax
push 0xd6
push dword [0x1081390]
call edi
test eax, eax
jle 0x10464bb
lea eax, [ebp - 0x45c]
push eax
jmp 0x10464c0
push 0x1005630
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x109c]
push 0x3f
push eax
call fcn.01046149
xor esi, esi
add esp, 0x10
cmp dword [ebp - 0x10b4], esi
je 0x1046631
cmp dword [0x10821f4], esi
je 0x1046521
push 0x100
lea eax, [ebp - 0x65c]
push eax
push 0xb5
push dword [0x1081390]
call edi
test eax, eax
je 0x1046521
lea eax, [ebp - 0x65c]
push eax
push esi
push 0x5d6
push dword [0x10821f4]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0x10055f8
push 4
pop esi
push esi
call fcn.0105e573
lea eax, [ebp - 0x10cc]
push eax
lea eax, [ebp - 0x10ac]
push eax
call dword [ebp - 0x10b4]
test eax, eax
jne 0x1046626
and dword [ebp - 0x10b4], eax
mov eax, dword [ebp - 0x10cc]
cmp eax, 0x78
jne 0x1046566
push 0x10055c4
jmp 0x104662b
cmp eax, 0x422
je 0x10465ad
cmp eax, 0x70
je 0x10465b4
cmp eax, 0x50
jne 0x104658a
push 0x1005588
push 2
call fcn.0105e5ad
pop ecx
pop ecx
jmp 0x1046631
test eax, eax
jle 0x1046598
and eax, 0xffff
or eax, 0x80070000
push eax
push 0x100554c
push 2
call fcn.0105e5ad
add esp, 0xc
jmp 0x1046631
push 0x100551c
jmp 0x10465b9
push 0x10054d8
push esi
call fcn.0105e573
cmp dword [ebx + 0x4c], 0
jne 0x1046631
push 0x400
lea eax, [ebp - 0x105c]
push eax
push 0xa1
push dword [0x1081390]
call edi
test eax, eax
je 0x104661c
push 0x200
lea eax, [ebp - 0x85c]
push eax
push 0x64
push dword [0x1081390]
call edi
test eax, eax
je 0x104661c
push 0x1011
lea eax, [ebp - 0x85c]
push eax
lea eax, [ebp - 0x105c]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 2
jne 0x1046631
mov eax, 0x800704c7
jmp 0x10467fc
push 0x10054bc
push esi
call fcn.0105e573
cmp dword [ebx + 0x44], 5
je 0x1046643
lea eax, [ebp - 0x10c0]
push eax
call fcn.01045bd7
mov ecx, 0x10820c8
call fcn.010576f1
mov ecx, dword [ebx]
and eax, 8
push eax
push 1
xor esi, esi
push esi
call fcn.0105573a
push eax
push 0x1005494
push 4
mov dword [ebp - 0x10b0], eax
call fcn.0105e5ad
add esp, 0xc
cmp dword [ebp - 0x10c0], esi
je 0x1046680
call fcn.01045c55
cmp dword [ebp - 0x10b0], esi
jl 0x1046761
mov ecx, dword [ebx + 4]
cmp ecx, esi
mov edi, 0xd2af9
je 0x10466cd
call fcn.01047064
test eax, eax
je 0x10466cd
mov ecx, dword [ebx + 4]
call fcn.0104707b
mov esi, eax
push esi
push 0x1005460
push 4
call fcn.0105e5ad
add esp, 0xc
test esi, esi
jl 0x10466c7
cmp dword [ebp - 0x10b0], edi
je 0x10466cd
mov dword [ebp - 0x10b0], esi
mov ecx, dword [ebx + 0x54]
test ecx, ecx
je 0x1046761
call fcn.0104947b
mov esi, eax
test esi, esi
je 0x1046761
cmp dword [esi + 0xa0], 0
je 0x1046761
cmp dword [esi + 0xa8], 0
je 0x1046761
push dword [esi + 0xc]
call fcn.0104819f
push eax
push 0x1005444
push 4
call fcn.0105e5ad
add esp, 0xc
push 0
call fcn.01045b51
mov ecx, esi
call fcn.0104be3b
cmp eax, 0xbc2
je 0x1046742
cmp eax, 0x80070bc2
je 0x1046742
cmp eax, edi
je 0x1046742
cmp dword [ebp - 0x10b0], 0
jl 0x1046748
test eax, eax
jge 0x1046748
mov dword [ebp - 0x10b0], eax
jmp 0x1046748
mov dword [ebp - 0x10b0], edi
push eax
push dword [esi + 0xc]
call fcn.0104819f
push eax
push 0x100541c
push 4
call fcn.0105e5ad
add esp, 0x10
xor eax, eax
xor esi, esi
cmp dword [ebp - 0x10bc], esi
setne al
cmp dword [ebp - 0x10b4], esi
lea eax, [eax + eax + 0x65]
mov dword [ebp - 0x10ac], eax
mov eax, dword [ebp - 0x10c8]
mov dword [ebp - 0x10a4], eax
mov eax, dword [ebp - 0x10c4]
mov dword [ebp - 0x10a0], eax
je 0x10467e2
lea eax, [ebp - 0x10cc]
push eax
lea eax, [ebp - 0x10ac]
push eax
call dword [ebp - 0x10b4]
test eax, eax
jne 0x10467d6
mov eax, dword [ebp - 0x10cc]
cmp eax, esi
jle 0x10467c4
and eax, 0xffff
or eax, 0x80070000
push eax
push 0x10053e4
push 2
call fcn.0105e5ad
add esp, 0xc
jmp 0x10467e2
push 0x10053c4
push 4
call fcn.0105e573
cmp dword [ebp - 0x10b8], esi
je 0x10467f6
push dword [ebp - 0x10b8]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x10b0]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01047417
leave
ret