Function at 0x405530
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42b827
mov eax, dword fs:[0]
push eax
sub esp, 0x5a8
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.00413af0
add esp, 8
test eax, eax
je 0x40557c
xor eax, eax
jmp 0x40585f
lea ecx, [ebp - 0x5b4]
push ecx
lea edx, [ebp - 0x5b0]
push edx
lea eax, [ebp - 0x31c]
push eax
lea ecx, [ebp - 0x5a4]
push ecx
mov dword [ebp - 0x5b0], 0x103
call sub.WS2_32.dll_WSCGetProviderPath
cmp eax, 0xffffffff
je 0x405575
push esi
lea ecx, [ebp - 0x5ac]
call fcn.00404260
xor ebx, ebx
mov eax, 0xf
mov dword [ebp - 4], ebx
mov dword [ebp - 0x548], eax
mov dword [ebp - 0x54c], ebx
mov byte [ebp - 0x55c], bl
mov dword [ebp - 0x564], eax
mov dword [ebp - 0x568], ebx
mov byte [ebp - 0x578], bl
mov edi, dword [ebp - 0x5ac]
mov byte [ebp - 4], 2
cmp edi, ebx
je 0x40560c
cmp dword [edi + 4], ebx
jne 0x405607
mov edx, dword [edi]
push edx
call fcn.00427e80
mov dword [edi + 4], eax
lea eax, [ebx + 0xf]
mov ecx, dword [edi + 4]
jmp 0x40560e
xor ecx, ecx
mov dword [ebp - 0x580], eax
mov eax, ecx
mov dword [ebp - 0x584], ebx
mov byte [ebp - 0x594], bl
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x405625
sub eax, esi
push eax
push ecx
lea ecx, [ebp - 0x594]
call fcn.00402640
lea eax, [ebp - 0x55c]
push eax
lea ecx, [ebp - 0x578]
push ecx
lea edx, [ebp - 0x594]
push edx
push 0x5c
mov byte [ebp - 4], 3
call fcn.00418710
add esp, 0x10
test al, al
sete byte [ebp - 0x5a5]
cmp dword [ebp - 0x580], 0x10
mov byte [ebp - 4], 2
jb 0x405683
mov eax, dword [ebp - 0x594]
push eax
call fcn.00418f39
add esp, 4
cmp byte [ebp - 0x5a5], bl
je 0x4056c6
cmp edi, ebx
je 0x4056a4
cmp dword [edi + 4], ebx
jne 0x40569f
mov ecx, dword [edi]
push ecx
call fcn.00427e80
mov dword [edi + 4], eax
mov edx, dword [edi + 4]
jmp 0x4056a6
xor edx, edx
mov eax, edx
lea edi, [eax + 1]
jmp 0x4056b0
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4056b0
sub eax, edi
push eax
push edx
lea ecx, [ebp - 0x55c]
call fcn.00402640
push 0x104
lea edx, [ebp - 0x114]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov esi, 0xf
mov dword [ebp - 0x52c], esi
mov dword [ebp - 0x530], ebx
mov byte [ebp - 0x540], bl
lea eax, [ebp - 0x114]
mov byte [ebp - 4], 4
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x405700
sub eax, edx
push eax
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x540]
call fcn.00402640
push 0x5c
push 1
lea ecx, [ebp - 0x540]
call fcn.00404510
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x55c]
push ecx
lea ecx, [ebp - 0x540]
call fcn.00404680
cmp dword [ebp - 0x52c], 0x10
mov eax, dword [ebp - 0x540]
jae 0x405755
lea eax, [ebp - 0x540]
mov ecx, dword [ebp - 0x530]
push 0x104
lea edx, [ebp - 0x524]
push edx
inc ecx
push ecx
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea edx, [ebp - 0x31c]
push edx
call fcn.0041a6c0
lea eax, [ebp - 0x524]
push eax
call fcn.0041a6c0
add esp, 8
lea ecx, [ebp - 0x524]
lea eax, [ebp - 0x31c]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4057c6
cmp dx, bx
je 0x4057c2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4057c6
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x4057a0
xor eax, eax
jmp 0x4057cb
sbb eax, eax
sbb eax, 0xffffffff
xor ecx, ecx
cmp eax, ebx
sete cl
cmp dword [ebp - 0x52c], 0x10
mov edi, ecx
jb 0x4057ec
mov edx, dword [ebp - 0x540]
push edx
call fcn.00418f39
add esp, 4
cmp dword [ebp - 0x564], 0x10
mov dword [ebp - 0x52c], esi
mov dword [ebp - 0x530], ebx
mov byte [ebp - 0x540], bl
jb 0x405816
mov eax, dword [ebp - 0x578]
push eax
call fcn.00418f39
add esp, 4
cmp dword [ebp - 0x548], 0x10
mov dword [ebp - 0x564], esi
mov dword [ebp - 0x568], ebx
mov byte [ebp - 0x578], bl
jb 0x405840
mov ecx, dword [ebp - 0x55c]
push ecx
call fcn.00418f39
add esp, 4
lea ecx, [ebp - 0x5ac]
mov dword [ebp - 0x548], esi
mov dword [ebp - 0x54c], ebx
mov byte [ebp - 0x55c], bl
call fcn.00404890
mov eax, edi
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