Function at 0x4285d0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x49f25d
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x4d6720]
xor eax, esp
mov dword [esp + 0x220], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4d6720]
xor eax, esp
push eax
lea eax, [esp + 0x238]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x248]
xor ebx, ebx
mov dword [esp + 0x240], ebx
mov dword [esp + 0x28], ebp
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], ebx
call fcn.00468b49
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x42864b
push 0x80004005
call fcn.00401210
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp], eax
mov edi, dword [esp + 0x24c]
mov esi, 1
mov dword [esp + 0x240], ebx
mov dword [esp + 0x24], esi
cmp edi, ebx
jne 0x4286a0
cmp dword [esp + 0x250], ebx
je 0x428851
push ebx
push ebx
lea ecx, [esp + 0x20]
push ecx
push 0x400
push edi
push ebx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
jmp 0x4287d7
lea ecx, [edi - 0x2ee0]
cmp ecx, 0xaf
ja 0x428682
call fcn.00468b49
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x4286c8
push 0x80004005
call fcn.00401210
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x14], edi
push 0x104
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x248], esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov esi, eax
cmp esi, ebx
je 0x428744
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0x18]
call fcn.00401d90
lea eax, [esi - 1]
cmp eax, ebx
jl 0x428886
mov edi, dword [esp + 0x14]
cmp eax, dword [edi - 0xc]
jg 0x428886
movzx ecx, word [edi + eax*2]
cmp cx, 0x2f
je 0x428744
push eax
lea ecx, [esp + 0x18]
call fcn.004062f0
cmp ax, 0x5c
je 0x428744
push 0x5c
lea ecx, [esp + 0x18]
call fcn.004149e0
mov edi, dword [esp + 0x14]
push str.wininet.dll
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.00401b10
mov eax, dword [eax]
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x428786
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esp + 0x24c]
push ebx
push ebx
lea ecx, [esp + 0x20]
push ecx
push 0x400
push edx
push esi
push 0xb00
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [edi - 0x10]
mov byte [esp + 0x240], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4287d0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x24c]
mov edx, dword [esp + 0x18]
cmp edx, ebx
je 0x428807
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4287e4
sub eax, esi
sar eax, 1
push eax
push edx
mov ecx, ebp
call fcn.00401760
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, ebp
call fcn.00401ce0
mov ecx, eax
call fcn.00401810
mov eax, dword [ebp]
cmp dword [eax - 0xc], ebx
jne 0x42882c
push edi
push str.Error__d
push ebp
call fcn.00404580
add esp, 0xc
push 0xd
mov ecx, ebp
call fcn.004038f0
push 0x4a7770
push 0x4a80b8
mov ecx, ebp
call fcn.004066b0
push 0x23
push 0x25
mov ecx, ebp
call fcn.00422470
mov ecx, dword [esp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebp
mov ecx, dword [esp + 0x238]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.00482b5f
add esp, 0x230
ret
push 0x80070057
call fcn.00401210
int3