Function at 0x416470
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x419508
push 0x4181f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x39c
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x174], 5
lea eax, [ebp - 0x27c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea ecx, [ebp - 0x27c]
push ecx
call fcn.00401b00
lea edx, [ebp - 0x68]
push edx
call fcn.004017b0
add esp, 8
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x34], 6
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x118]
mov esi, dword [eax + 0x54]
mov dword [ebp - 0x178], esi
push esi
call fcn.00401a60
add esp, 4
mov dword [ebp - 0x6c], eax
test eax, eax
jne 0x41650e
mov dword [ebp - 0x174], 2
jmp 0x4168fc
mov dword [ebp - 4], 0
mov ecx, esi
mov esi, dword [ebx + 0x10c]
mov edi, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [0x41e3ac]
test eax, eax
je 0x416581
push str.split.ini
lea eax, [ebp - 0x170]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [ebp - 0x170]
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x38], 0x41daf4
mov edx, dword [str.INI]
mov dword [ebp - 0x5c], edx
lea eax, [ebp - 0x68]
push eax
call sub.comdlg32.dll_GetSaveFileNameA
test eax, eax
je 0x4168fc
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
jmp 0x4165a9
lea ecx, [ebp - 0x27c]
push ecx
lea edx, [ebp - 0x170]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push str.split.ini
lea eax, [ebp - 0x170]
push eax
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
call esi
push 3
lea ecx, [ebp - 0x170]
push ecx
call fcn.00416ce0
add esp, 8
cmp eax, 0xffffffff
je 0x4165c6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call fcn.00401b30
add esp, 4
test eax, eax
jne 0x4165d8
mov eax, dword [0x41b1c0]
lea edx, [ebp - 0x170]
push edx
push eax
push str.ORG_EXT
mov eax, dword [str.SplitInfo]
push eax
mov edi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
call edi
test eax, eax
jne 0x416606
mov dword [ebp - 0x174], 1
jmp 0x4168fc
mov eax, dword [0x41e3ac]
test eax, eax
je 0x41665d
mov ecx, dword [str.LPE]
mov dword [ebp - 0x5c], ecx
lea edx, [ebp - 0x3a4]
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x38], 0x41dad8
push str.0header
lea eax, [ebp - 0x3a4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [str..LPE]
push ecx
lea edx, [ebp - 0x3a4]
push edx
call esi
lea eax, [ebp - 0x68]
push eax
call sub.comdlg32.dll_GetSaveFileNameA
test eax, eax
je 0x4168fc
jmp 0x41668f
lea ecx, [ebp - 0x27c]
push ecx
lea edx, [ebp - 0x3a4]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push str.0header
lea eax, [ebp - 0x3a4]
push eax
call esi
mov ecx, dword [str..LPE]
push ecx
lea edx, [ebp - 0x3a4]
push edx
call esi
lea eax, [ebp - 0x3a4]
push eax
mov ecx, dword [ebp - 0x178]
push ecx
mov edx, dword [ebp - 0x6c]
push edx
call fcn.00406830
add esp, 0xc
test eax, eax
jne 0x4166bc
mov dword [ebp - 0x174], 1
jmp 0x4168fc
lea eax, [ebp - 0x170]
push eax
lea ecx, [ebp - 0x3a4]
push ecx
push str.HEADER
mov edx, dword [str.SplitInfo]
push edx
call edi
test eax, eax
jne 0x4166eb
mov dword [ebp - 0x174], 1
jmp 0x4168fc
mov dword [ebp - 0x38], 0x41dab4
mov ebx, dword [ebx + 0x124]
mov dword [ebp - 0x2a0], 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x118]
xor edx, edx
mov dx, word [ecx + 6]
cmp dword [ebp - 0x2a0], edx
jae 0x4168d6
mov esi, dword [ebx + 0x10]
mov dword [ebp - 0x178], esi
test esi, esi
je 0x41677f
push esi
mov eax, dword [ebp - 0x6c]
push eax
call fcn.00401a70
add esp, 8
mov dword [ebp - 0x6c], eax
test eax, eax
jne 0x41674d
mov dword [ebp - 0x174], 2
jmp 0x4168fc
mov dword [ebp - 4], 1
mov ecx, esi
mov esi, dword [ebx + 0x14]
mov edx, dword [ebp + 8]
add esi, dword [edx + 0x10c]
mov edi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x178]
mov ecx, 7
xor eax, eax
lea edi, [ebp - 0x29c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, dword [ebx]
mov dword [ebp - 0x29b], ecx
mov edx, dword [ebx + 4]
mov dword [ebp - 0x297], edx
mov al, byte [ebp - 0x2a0]
add al, 0x31
mov byte [ebp - 0x29c], al
lea ecx, [ebp - 0x29c]
push ecx
call fcn.00416450
add esp, 4
mov al, byte [ebp - 0x29c]
test al, al
jne 0x4167e5
mov edx, dword [ebp - 0x2a0]
inc edx
push edx
push str.sec_d
lea eax, [ebp - 0x29c]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov ecx, dword [str..LPE]
push ecx
lea edx, [ebp - 0x29c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, dword [0x41e3ac]
test eax, eax
lea eax, [ebp - 0x29c]
push eax
je 0x416834
lea ecx, [ebp - 0x3a4]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [ebp - 0x68]
push edx
call sub.comdlg32.dll_GetSaveFileNameA
test eax, eax
je 0x4168fc
jmp 0x416850
lea ecx, [ebp - 0x27c]
push ecx
push str._s_s
lea edx, [ebp - 0x3a4]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x3a4]
push eax
push esi
mov ecx, dword [ebp - 0x6c]
push ecx
call fcn.00406830
add esp, 0xc
test eax, eax
jne 0x416877
mov dword [ebp - 0x174], 1
jmp 0x4168fc
mov edx, dword [ebp - 0x2a0]
lea edi, [edx + 1]
push edi
push str.SECTION_d
lea eax, [ebp - 0x29c]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [ebp - 0x170]
push ecx
lea edx, [ebp - 0x3a4]
push edx
lea eax, [ebp - 0x29c]
push eax
mov ecx, dword [str.SplitInfo]
push ecx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
test eax, eax
jne 0x4168c8
mov dword [ebp - 0x174], 1
jmp 0x4168fc
add ebx, 0x28
mov dword [ebp - 0x2a0], edi
jmp 0x416702
mov dword [ebp - 0x174], 0
jmp 0x4168fc
mov edx, dword [ebp - 0x6c]
push edx
call fcn.00401a90
add esp, 4
mov eax, dword [ebp - 0x174]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret