Function at 0x496038
Capabilities:
Create process on windows
Get common file path
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x47c
mov eax, dword [ebp + 0x14]
push ebx
push esi
mov esi, ecx
mov ecx, dword [ebp + 0xc]
push edi
xor edi, edi
cmp ecx, 0x418
mov dword [eax], edi
je 0x4963c6
cmp ecx, 0x1e697
je 0x4963c6
cmp ecx, 0x3f7
jne 0x4960fa
mov eax, dword [0x4af550]
mov dword [ebp + 0xc], eax
lea eax, [ebp - 0x47c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x270]
push eax
push edi
lea eax, [ebp - 0x47c]
push str.lng_
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x4960f2
lea eax, [ebp - 0x270]
push 0x4b2e70
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x4c56f4
push ecx
lea eax, [ebp - 0x270]
mov ecx, esp
push eax
call fcn.0040a529
call fcn.0045f748
pop ecx
lea eax, [ebp - 0x270]
pop ecx
push 1
push edi
push edi
push eax
push str.open
push dword [esi + 4]
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [ebp + 0xc]
jmp 0x496490
cmp ecx, 0x3f6
jne 0x49610e
mov ecx, esi
call fcn.004966b3
jmp 0x496495
cmp ecx, 0x407
jne 0x496122
mov ecx, esi
call fcn.004968c2
jmp 0x496495
cmp ecx, 0x3f9
mov eax, 0x3fb
je 0x49623c
cmp ecx, eax
je 0x49623c
cmp ecx, 0x3fa
jne 0x496495
mov edx, dword [0x4bc51c]
mov ebx, 0x81
mov ecx, ebx
xor eax, eax
lea edi, [ebp - 0x478]
mov dword [ebp - 0x47c], edx
rep stosd dword es:[edi], eax
mov ecx, ebx
lea edi, [ebp - 0x26c]
mov dword [ebp - 0x270], edx
push 0x16
rep stosd dword es:[edi], eax
pop ecx
lea edi, [ebp - 0x64]
rep stosd dword es:[edi], eax
mov eax, dword [esi + 4]
xor ebx, ebx
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x47c]
mov dword [ebp - 0x48], eax
mov eax, 0x208
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x64]
lea ecx, [ebp - 0x270]
push eax
mov word [ebp - 0x47c], bx
mov dword [ebp - 0x64], 0x58
mov dword [ebp - 0x58], str.TXT__.txt_
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x30], ebx
call dword [sym.imp.comdlg32.dll_GetOpenFileNameW]
test eax, eax
je 0x496495
lea eax, [ebp - 0x270]
lea ecx, [ebp + 0x14]
push eax
call fcn.0040a529
lea eax, [ebp - 0x47c]
lea ecx, [ebp + 0xc]
push eax
call fcn.0040a529
lea edi, [esi + 0x74]
lea eax, [ebp + 0xc]
push eax
mov ecx, edi
call fcn.00403a8c
push ebx
push dword [edi]
push str.File
push str.Translate
call fcn.0044aaba
add esp, 0x10
push dword [edi]
push dword [esi + 0x70]
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov ecx, esi
call fcn.00495ddb
lea ecx, [ebp + 0xc]
call fcn.004038fb
lea ecx, [ebp + 0x14]
call fcn.004038fb
push 1
pop eax
jmp 0x496497
mov edx, dword [esi + 0x74]
cmp dword [edx - 8], edi
je 0x49624c
cmp ecx, eax
jne 0x4963ab
mov edx, dword [0x4bc51c]
mov ebx, 0x81
mov ecx, ebx
xor eax, eax
lea edi, [ebp - 0x478]
mov dword [ebp - 0x47c], edx
rep stosd dword es:[edi], eax
mov ecx, ebx
lea edi, [ebp - 0x26c]
mov dword [ebp - 0x270], edx
push 0x16
rep stosd dword es:[edi], eax
pop ecx
lea edi, [ebp - 0x64]
rep stosd dword es:[edi], eax
mov eax, dword [esi + 4]
xor ebx, ebx
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x47c]
mov dword [ebp - 0x48], eax
mov eax, 0x208
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x64]
lea ecx, [ebp - 0x270]
push eax
mov word [ebp - 0x47c], bx
mov dword [ebp - 0x64], 0x58
mov dword [ebp - 0x58], str.TXT__.txt_
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x30], ebx
call dword [sym.imp.comdlg32.dll_GetSaveFileNameW]
test eax, eax
je 0x496495
lea eax, [ebp - 0x270]
lea ecx, [ebp - 0xc]
push eax
call fcn.0040a529
lea eax, [ebp - 0x47c]
lea ecx, [ebp - 8]
push eax
call fcn.0040a529
lea eax, [ebp - 8]
lea edi, [esi + 0x74]
push eax
mov ecx, edi
call fcn.00403a8c
push ecx
mov ecx, esp
push edi
call fcn.004038b5
lea eax, [ebp + 0x14]
push eax
call fcn.0045fe66
pop ecx
pop ecx
lea ecx, [ebp + 0x14]
call fcn.00403cfb
push dword [ebp + 0x14]
call dword [sym.imp.USER32.dll_CharLowerW]
push 0x4b0f08
lea ecx, [ebp - 4]
call fcn.00403927
push dword [ebp - 4]
push dword [ebp + 0x14]
call fcn.0049c975
pop ecx
pop ecx
test eax, eax
lea ecx, [ebp - 4]
setne byte [ebp + 0xf]
call fcn.004038fb
cmp byte [ebp + 0xf], bl
je 0x496371
mov ebx, 0x4b2e70
mov eax, ebx
test eax, eax
je 0x496366
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
push eax
mov ecx, edi
call fcn.00403bd8
xor ebx, ebx
push dword [edi]
push dword [esi + 0x70]
call dword [sym.imp.USER32.dll_SetWindowTextW]
push ebx
push dword [edi]
push str.File
push str.Translate
call fcn.0044aaba
add esp, 0x10
lea ecx, [ebp + 0x14]
call fcn.004038fb
lea ecx, [ebp - 8]
call fcn.004038fb
lea ecx, [ebp - 0xc]
call fcn.004038fb
xor edi, edi
push ecx
lea eax, [esi + 0x74]
mov ecx, esp
push eax
call fcn.004038b5
mov ecx, esi
call fcn.0049649e
mov dword [esi + 0x68], edi
jmp 0x496495
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x3ea
mov dword [eax], 1
mov eax, dword [0x4af550]
push dword [esi + 4]
mov dword [ebp + 0x14], eax
call edi
mov ebx, eax
lea eax, [ebp - 0x270]
push 0x104
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0
push ebx
mov ebx, dword [sym.imp.USER32.dll_EnableWindow]
call ebx
lea eax, [ebp + 0x14]
push eax
push ecx
lea eax, [ebp - 0x270]
mov ecx, esp
push eax
call fcn.0040a529
call fcn.0045f621
pop ecx
test eax, eax
pop ecx
je 0x496431
push 0x3f9
push dword [esi + 4]
call edi
push 1
push eax
call ebx
cmp dword [ebp + 0xc], 0x1e697
lea eax, [esi + 0x98]
push eax
jne 0x49645e
add esi, 0x88
lea eax, [ebp + 0x14]
push esi
push ecx
mov ecx, esp
push eax
call fcn.004038b5
call fcn.00460509
add esp, 0xc
jmp 0x49648d
add esi, 0x88
lea eax, [ebp + 0x14]
push esi
push ecx
mov ecx, esp
push eax
call fcn.004038b5
call fcn.00460509
mov ecx, dword [0x4cb14c]
add esp, 0xc
test ecx, ecx
je 0x49648d
mov eax, dword [ecx]
push dword [0x4b312c]
call dword [eax]
lea ecx, [ebp + 0x14]
call fcn.004038fb
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x10