Function at 0x545d90
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x645e6a
mov eax, dword fs:[0]
push eax
sub esp, 0x5e8
mov eax, dword [0x6bc858]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [edi + 0x50]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
push 0xb
call edx
mov ecx, dword [edi + 0x50]
xor ebx, ebx
mov dword [ebp - 0x5f4], eax
mov dword [ebp - 0x5d4], ebx
mov dword [ebp - 0x5e4], ebx
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
push 2
call edx
mov ecx, dword [edi + 0x50]
mov dword [ebp - 0x5d8], eax
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
push 2
call edx
mov ecx, dword [edi + 0x50]
mov dword [ebp - 0x5e8], eax
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
push ebx
call edx
mov ecx, dword [edi + 0x50]
mov dword [ebp - 0x5e0], eax
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
push ebx
call edx
mov ecx, dword [edi + 0x50]
mov dword [ebp - 0x5f0], eax
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
mov esi, 1
push esi
call edx
mov ecx, dword [edi + 0x50]
mov dword [ebp - 0x5dc], eax
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
push esi
call edx
mov dword [ebp - 0x5ec], eax
call fcn.00545b60
test eax, eax
jne 0x546046
lea eax, [ebp - 0x388]
call fcn.00460f00
mov dword [ebp - 4], ebx
mov eax, dword [edi]
mov edx, dword [eax + 0x4c]
mov ecx, edi
mov dword [ebp - 0x148], esi
mov dword [ebp - 0x150], 0x12c
mov dword [ebp - 0x14c], 0xb5
call edx
push eax
mov ecx, 0x6974e0
lea esi, [ebp - 0x388]
call fcn.00461000
mov ecx, dword [ebp - 0x36c]
mov eax, dword [ecx]
mov edx, dword [eax + 0xf4]
push 0x675fc4
call edx
mov ecx, dword [ebp - 0x36c]
mov eax, dword [ecx]
mov edx, dword [eax + 0xfc]
call edx
mov ecx, dword [ebp - 0x36c]
mov eax, dword [ecx]
mov edx, dword [eax + 0x80]
push ebx
call edx
mov ecx, dword [ebp - 0x158]
cmp ecx, ebx
je 0x545f09
mov eax, dword [ecx]
mov edx, dword [eax + 0xf4]
push 0x6974ec
call edx
mov ecx, dword [ebp - 0x158]
mov eax, dword [ecx]
mov edx, dword [eax + 0xfc]
call edx
mov ecx, dword [ebp - 0x158]
mov eax, dword [ecx]
mov edx, dword [eax + 0x80]
push ebx
call edx
mov eax, dword [ebp - 0x384]
push eax
call fcn.00593ae0
cmp eax, 1
jne 0x54603a
lea eax, [ebp - 0x35c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x545f27
sub eax, edx
sar eax, 1
cmp eax, ebx
je 0x54603a
mov ecx, dword [edi + 0x50]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
push 0xc
call eax
mov ecx, dword [edi + 0x48]
mov dword [ebp - 0x5f4], eax
mov edx, dword [ecx]
mov eax, dword [edx + 0xf8]
push 0x6974fc
call eax
mov ecx, dword [edi + 0x48]
mov edx, dword [ecx]
mov eax, dword [edx + 0x34]
push 0x697418
call eax
mov ecx, dword [edi + 0x48]
mov edx, dword [ecx]
mov edx, dword [edx + 0x108]
lea eax, [ebp - 0x5f4]
push eax
call edx
push 0x103
lea eax, [ebp - 0x13f]
push ebx
push eax
mov byte [ebp - 0x140], bl
call fcn.005ff630
xor eax, eax
mov byte [ebp - 0x34], bl
add esp, 0xc
lea ebx, [ebp - 0x34]
lea esi, [ebp - 0x35c]
mov dword [ebp - 0x33], eax
mov dword [ebp - 0x2f], eax
mov dword [ebp - 0x2b], eax
mov dword [ebp - 0x27], eax
mov dword [ebp - 0x23], eax
mov dword [ebp - 0x1f], eax
mov dword [ebp - 0x1b], eax
mov dword [ebp - 0x17], eax
call fcn.004d1600
lea ecx, [ebp - 0x140]
push ecx
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
js 0x546038
lea eax, [ebp - 0x140]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x545ff0
sub eax, edx
push str.Config.ini
lea edx, [ebp - 0x140]
push edx
mov byte [ebp + eax - 0x140], 0x5c
mov eax, edx
push str._swifipcap_s
push eax
call fcn.005f1060
add esp, 0x10
lea ecx, [ebp - 0x140]
push ecx
lea edx, [ebp - 0x34]
push edx
push 0x6974d4
push str.QUERY
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
xor ebx, ebx
lea eax, [ebp - 0x388]
push eax
jmp 0x5461fb
lea eax, [ebp - 0x5d0]
call fcn.00460f00
mov dword [ebp - 4], esi
mov edx, dword [edi]
mov eax, dword [edx + 0x4c]
mov ecx, edi
mov dword [ebp - 0x390], ebx
mov dword [ebp - 0x398], 0x12c
mov dword [ebp - 0x394], 0x87
call eax
push eax
mov ecx, 0x697504
lea esi, [ebp - 0x5d0]
call fcn.00461000
mov ecx, dword [ebp - 0x5b4]
mov edx, dword [ecx]
mov eax, dword [edx + 0xf4]
push 0x675fc4
call eax
mov ecx, dword [ebp - 0x5b4]
mov edx, dword [ecx]
mov eax, dword [edx + 0xfc]
call eax
mov ecx, dword [ebp - 0x5b4]
mov edx, dword [ecx]
mov eax, dword [edx + 0x80]
push ebx
call eax
mov ecx, dword [ebp - 0x5cc]
push ecx
call fcn.00593ae0
cmp eax, 1
jne 0x5461f4
mov byte [ebp - 0x34], bl
mov dword [ebp - 0x33], ebx
mov dword [ebp - 0x2f], ebx
mov dword [ebp - 0x2b], ebx
mov dword [ebp - 0x27], ebx
mov dword [ebp - 0x23], ebx
mov dword [ebp - 0x1f], ebx
mov dword [ebp - 0x1b], ebx
mov dword [ebp - 0x17], ebx
lea ebx, [ebp - 0x34]
lea esi, [ebp - 0x5a4]
call fcn.004d1600
mov edx, ebx
push edx
call fcn.00545c60
test eax, eax
je 0x5461dd
mov ecx, dword [edi + 0x50]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
push 0xb
call edx
mov ecx, dword [edi + 0x48]
mov dword [ebp - 0x5f4], eax
mov eax, dword [ecx]
mov edx, dword [eax + 0xf8]
push 0x697510
call edx
mov ecx, dword [edi + 0x48]
mov eax, dword [ecx]
mov edx, dword [eax + 0x34]
push 0x6973f8
call edx
mov ecx, dword [edi + 0x48]
mov eax, dword [ecx]
mov eax, dword [eax + 0x108]
lea edx, [ebp - 0x5f4]
push edx
call eax
push 0x103
lea ecx, [ebp - 0x13f]
push 0
push ecx
mov byte [ebp - 0x140], 0
call fcn.005ff630
add esp, 0xc
lea edx, [ebp - 0x140]
push edx
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
js 0x5461f2
lea eax, [ebp - 0x140]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x546192
sub eax, edx
mov byte [ebp + eax - 0x140], 0x5c
push str.Config.ini
lea eax, [ebp - 0x140]
push eax
mov ecx, eax
push str._swifipcap_s
push ecx
call fcn.005f1060
add esp, 0x10
lea edx, [ebp - 0x140]
push edx
push 0x6745b6
push 0x6974d4
push str.QUERY
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
jmp 0x5461f2
mov eax, dword [edi + 4]
push 1
push 0x675fd4
push 0x697518
push eax
call fcn.005945e0
xor ebx, ebx
lea ecx, [ebp - 0x5d0]
push ecx
mov dword [ebp - 4], 0xffffffff
call fcn.00460f70
mov ecx, dword [edi + 0x48]
mov edx, dword [ecx]
mov eax, dword [edx + 0x80]
push ebx
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005f0da0
mov esp, ebp
pop ebp
ret