Function at 0x405250
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42b7bc
mov eax, dword fs:[0]
push eax
sub esp, 0x5a4
mov eax, dword [0x43b1c0]
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 esi, dword [ebp + 8]
lea eax, [ebp - 0x5a4]
push eax
push esi
call fcn.00413a50
add esp, 8
test eax, eax
je 0x40529c
xor eax, eax
jmp 0x40550f
lea ecx, [ebp - 0x5b0]
push ecx
lea edx, [ebp - 0x5ac]
push edx
lea eax, [ebp - 0x31c]
push eax
lea ecx, [ebp - 0x5a4]
push ecx
mov dword [ebp - 0x5ac], 0x103
call sub.WS2_32.dll_WSCGetProviderPath
cmp eax, 0xffffffff
je 0x405295
xor ebx, ebx
mov eax, 0xf
mov dword [ebp - 0x564], eax
mov dword [ebp - 0x568], ebx
mov byte [ebp - 0x578], bl
mov dword [ebp - 4], ebx
mov dword [ebp - 0x548], eax
mov dword [ebp - 0x54c], ebx
mov byte [ebp - 0x55c], bl
mov dword [ebp - 0x580], eax
mov eax, esi
mov byte [ebp - 4], 1
mov dword [ebp - 0x584], ebx
mov byte [ebp - 0x594], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x405315
sub eax, edx
push eax
push esi
lea ecx, [ebp - 0x594]
call fcn.00402640
lea edx, [ebp - 0x578]
push edx
lea eax, [ebp - 0x55c]
push eax
lea ecx, [ebp - 0x594]
push ecx
push 0x5c
mov byte [ebp - 4], 2
call fcn.00418710
add esp, 0x10
test al, al
mov edi, 0x10
sete byte [ebp - 0x5a5]
mov byte [ebp - 4], 1
cmp dword [ebp - 0x580], edi
jb 0x405377
mov edx, dword [ebp - 0x594]
push edx
call fcn.00418f39
add esp, 4
cmp byte [ebp - 0x5a5], bl
je 0x40539a
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x405384
sub eax, edx
push eax
push esi
lea ecx, [ebp - 0x578]
call fcn.00402640
push 0x104
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov dword [ebp - 0x52c], 0xf
mov dword [ebp - 0x530], ebx
mov byte [ebp - 0x540], bl
lea eax, [ebp - 0x114]
mov byte [ebp - 4], 3
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4053d0
sub eax, edx
push eax
lea ecx, [ebp - 0x114]
push ecx
lea ecx, [ebp - 0x540]
call fcn.00402640
push 0x5c
push 1
lea ecx, [ebp - 0x540]
call fcn.00404510
push 0xffffffffffffffff
push ebx
lea edx, [ebp - 0x578]
push edx
lea ecx, [ebp - 0x540]
call fcn.00404680
mov eax, dword [ebp - 0x540]
cmp dword [ebp - 0x52c], edi
jae 0x405424
lea eax, [ebp - 0x540]
mov edx, dword [ebp - 0x530]
push 0x104
lea ecx, [ebp - 0x524]
push ecx
inc edx
push edx
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [ebp - 0x31c]
push eax
call fcn.0041a6c0
lea ecx, [ebp - 0x524]
push ecx
call fcn.0041a6c0
add esp, 8
lea ecx, [ebp - 0x524]
lea eax, [ebp - 0x31c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40548e
cmp dx, bx
je 0x40548a
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40548e
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x405468
xor eax, eax
jmp 0x405493
sbb eax, eax
sbb eax, 0xffffffff
xor edx, edx
cmp eax, ebx
sete dl
mov esi, edx
cmp dword [ebp - 0x52c], edi
jb 0x4054b3
mov eax, dword [ebp - 0x540]
push eax
call fcn.00418f39
add esp, 4
mov dword [ebp - 0x52c], 0xf
mov dword [ebp - 0x530], ebx
mov byte [ebp - 0x540], bl
cmp dword [ebp - 0x548], edi
jb 0x4054e0
mov ecx, dword [ebp - 0x55c]
push ecx
call fcn.00418f39
add esp, 4
mov dword [ebp - 0x548], 0xf
mov dword [ebp - 0x54c], ebx
mov byte [ebp - 0x55c], bl
cmp dword [ebp - 0x564], edi
jb 0x40550d
mov edx, dword [ebp - 0x578]
push edx
call fcn.00418f39
add esp, 4
mov eax, esi
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.00419ad1
mov esp, ebp
pop ebp
ret