Function at 0x4075cd
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4284ae
mov eax, dword fs:[0]
push eax
sub esp, 0x59c
mov eax, dword [0x435280]
xor eax, esp
mov dword [esp + 0x598], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x435280]
xor eax, esp
push eax
lea eax, [esp + 0x5b0]
mov dword fs:[0], eax
mov ebp, ecx
push ebp
or edi, 0xffffffff
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
jne 0x407622
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x407663
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetLspGuid
push esi
call ebx
test eax, eax
jne 0x40764a
push 0x430d5c
push esi
call ebx
test eax, eax
jne 0x40764a
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
jmp 0x407658
lea ecx, [esp + 0x84]
push ecx
call eax
xor ebx, ebx
mov edi, ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test edi, edi
je 0x40766a
xor eax, eax
jmp 0x407879
lea eax, [esp + 0x20]
mov dword [esp + 0x1c], 0x103
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x3ac]
push eax
lea eax, [esp + 0x90]
push eax
call dword [sym.imp.WS2_32.dll_WSCGetProviderPath]
cmp eax, 0xffffffff
je 0x407663
push ebp
lea ecx, [esp + 0x1c]
call fcn.00406896
push 0xf
mov dword [esp + 0x5bc], ebx
pop ebp
mov dword [esp + 0x50], ebp
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
mov dword [esp + 0x68], ebp
mov dword [esp + 0x64], ebx
mov byte [esp + 0x54], bl
mov byte [esp + 0x5b8], 2
mov esi, dword [esp + 0x18]
test esi, esi
je 0x4076e7
cmp dword [esi + 4], ebx
jne 0x4076e2
push dword [esi]
call fcn.00425c90
mov dword [esi + 4], eax
mov eax, dword [esi + 4]
jmp 0x4076e9
mov eax, ebx
push eax
lea ecx, [esp + 0x70]
call fcn.004047b1
lea eax, [esp + 0x3c]
mov byte [esp + 0x5b8], 3
push eax
lea eax, [esp + 0x58]
mov cl, 0x5c
push eax
lea edx, [esp + 0x74]
call fcn.00410672
pop ecx
pop ecx
mov bl, al
mov byte [esp + 0x5b8], 2
push 0
neg bl
lea ecx, [esp + 0x70]
push 1
sbb bl, bl
call fcn.004048e6
inc bl
je 0x40775e
test esi, esi
je 0x40774a
cmp dword [esi + 4], 0
jne 0x407745
push dword [esi]
call fcn.00425c90
mov dword [esi + 4], eax
mov edi, dword [esi + 4]
jmp 0x40774c
xor edi, edi
push edi
call fcn.00403cb8
pop ecx
push eax
push edi
lea ecx, [esp + 0x44]
call fcn.00404980
mov edi, 0x104
lea eax, [esp + 0x94]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
xor ebx, ebx
mov dword [esp + 0x38], ebp
mov dword [esp + 0x34], ebx
mov byte [esp + 0x24], bl
lea eax, [esp + 0x94]
mov byte [esp + 0x5b8], 4
push eax
call fcn.00403cb8
pop ecx
push eax
lea eax, [esp + 0x98]
push eax
lea ecx, [esp + 0x2c]
call fcn.00404980
push 0x5c
lea ecx, [esp + 0x28]
call fcn.00409fc1
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x30]
call fcn.0040a13a
cmp dword [esp + 0x38], 0x10
lea eax, [esp + 0x19c]
push edi
push eax
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 0x2c]
cmovae ecx, dword [esp + 0x2c]
inc eax
push eax
push ecx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [esp + 0x3a4]
push eax
call fcn.00412e8d
pop ecx
lea eax, [esp + 0x19c]
push eax
call fcn.00412e8d
pop ecx
lea ecx, [esp + 0x19c]
lea eax, [esp + 0x3a4]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40783a
test dx, dx
je 0x407836
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40783a
add eax, 4
add ecx, 4
test dx, dx
jne 0x407814
mov eax, ebx
jmp 0x40783f
sbb eax, eax
or eax, 1
xor ebx, ebx
lea ecx, [esp + 0x24]
test eax, eax
sete bl
xor ebp, ebp
push ebp
push 1
call fcn.004048e6
push ebp
push 1
lea ecx, [esp + 0x5c]
call fcn.004048e6
push ebp
push 1
lea ecx, [esp + 0x44]
call fcn.004048e6
test esi, esi
je 0x407877
mov ecx, esi
call fcn.0040690b
mov eax, ebx
mov ecx, dword [esp + 0x5b0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x598]
xor ecx, esp
call fcn.00410875
add esp, 0x5a8
ret