Function at 0x4257c0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x531237
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x188
push ebx
push ebp
push esi
xor ebp, ebp
push edi
mov esi, ecx
mov dword [esp + 0x1c], ebp
call fcn.00437850
test eax, eax
jne 0x4258b4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x598d50]
mov dword [esp + 0x10], eax
mov dword [esp + 0x1a0], ebp
mov dword [esp + 0x1c], eax
mov byte [esp + 0x1a0], 1
mov dword [esp + 0x14], eax
push 0x6b
lea ecx, [esp + 0x14]
mov byte [esp + 0x1a4], 2
call fcn.00512508
mov eax, dword [esp + 0x10]
push edi
lea ecx, [esp + 0x14]
mov eax, dword [eax - 8]
push eax
call fcn.0051231b
lea ecx, [esp + 0x20]
push eax
push ecx
call fcn.00434040
add esp, 0xc
lea ecx, [esp + 0x14]
push 0xc6
call fcn.00512508
push 0x591574
lea ecx, [esp + 0x20]
call fcn.005122c7
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
push 0x10
push edx
push eax
mov ecx, esi
call fcn.0050fb08
lea ecx, [esp + 0x14]
mov byte [esp + 0x1a0], 1
call fcn.00511eeb
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1a0], 0
call fcn.00511eeb
mov dword [esp + 0x1a0], 0xffffffff
lea ecx, [esp + 0x10]
jmp 0x425fe9
cmp dword [esi + 0x6eb4], ebp
jne 0x4258d9
lea ecx, [esi + 0x6eb0]
push ecx
call fcn.00437be0
mov eax, dword [esi + 0x6eb4]
add esp, 4
cmp eax, ebp
je 0x425f21
cmp dword [esi + 0x6eb0], ebp
je 0x425f21
cmp dword [esi + 0x6eb8], 1
jge 0x4259bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, ebp
jne 0x425903
mov edi, 0x8010002e
mov eax, dword [0x598d50]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x1a0], 6
mov dword [esp + 0x10], eax
mov bl, 7
mov byte [esp + 0x1a0], bl
mov dword [esp + 0x14], eax
push 0x72
lea ecx, [esp + 0x20]
mov byte [esp + 0x1a4], 8
call fcn.00512508
mov edx, dword [esp + 0x1c]
push edi
lea ecx, [esp + 0x20]
mov eax, dword [edx - 8]
push eax
call fcn.0051231b
push eax
lea eax, [esp + 0x18]
push eax
call fcn.00434040
add esp, 0xc
lea ecx, [esp + 0x14]
push 0xc6
call fcn.00512508
push 0x591568
lea ecx, [esp + 0x14]
call fcn.005122c7
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push 0x10
push ecx
push edx
mov ecx, esi
call fcn.0050fb08
lea ecx, [esp + 0x14]
mov byte [esp + 0x1a0], bl
call fcn.00511eeb
lea ecx, [esp + 0x10]
mov byte [esp + 0x1a0], 6
call fcn.00511eeb
mov dword [esp + 0x1a0], 0xffffffff
lea ecx, [esp + 0x1c]
jmp 0x425fe9
mov ecx, dword [esi + 0x70c4]
lea eax, [esi + 0x70c4]
cmp ecx, ebp
jne 0x425ab3
push eax
push ebp
push ebp
push 2
call dword [fcn.005a1c14]
cmp eax, ebp
mov dword [esp + 0x1c], eax
je 0x425ab3
mov eax, dword [0x598d50]
mov dword [esp + 0x14], eax
mov dword [esp + 0x1a0], 9
mov dword [esp + 0x10], eax
mov bl, 0xa
mov byte [esp + 0x1a0], bl
mov dword [esp + 0x18], eax
push 0x591550
lea eax, [esp + 0x18]
push 0x70
push eax
mov byte [esp + 0x1ac], 0xb
call fcn.0050a958
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x28]
add esp, 0xc
mov eax, dword [ecx - 8]
lea ecx, [esp + 0x14]
push edx
push eax
call fcn.0051231b
push eax
lea eax, [esp + 0x18]
push eax
call fcn.00434040
add esp, 0xc
lea ecx, [esp + 0x18]
push 0xc6
call fcn.00512508
push 0x591544
lea ecx, [esp + 0x14]
call fcn.005122c7
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
push 0x10
push ecx
push edx
mov ecx, esi
call fcn.0050fb08
lea ecx, [esp + 0x18]
mov byte [esp + 0x1a0], bl
call fcn.00511eeb
lea ecx, [esp + 0x10]
mov byte [esp + 0x1a0], 9
call fcn.00511eeb
mov dword [esp + 0x1a0], 0xffffffff
lea ecx, [esp + 0x14]
jmp 0x425fe9
mov eax, dword [esi + 0x70cc]
lea ebx, [esi + 0x70cc]
cmp eax, ebp
jne 0x425da5
cmp dword [esi + 0x6eb8], 1
jg 0x425add
test byte [esi + 0x70e0], 0x20
jne 0x425da5
mov al, byte [0x5a17b0]
mov ecx, 0x40
mov byte [esp + 0x94], al
xor eax, eax
lea edi, [esp + 0x95]
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x98]
push ecx
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edx, [esp + 0x94]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [esp + eax + 0x93], 0x5c
je 0x425b3a
lea eax, [esp + 0x94]
push 0x5909e8
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0x94]
push 0x591534
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 8
lea edx, [esp + 0x98]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov ebp, eax
test ebp, ebp
jne 0x425c42
push 0x591534
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebp, eax
test ebp, ebp
jne 0x425c42
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x598d50]
mov dword [esp + 0x10], eax
mov dword [esp + 0x1a0], 0xc
mov dword [esp + 0x14], eax
mov bl, 0xd
mov byte [esp + 0x1a0], bl
mov dword [esp + 0x18], eax
push 0x6b
lea ecx, [esp + 0x14]
mov byte [esp + 0x1a4], 0xe
call fcn.00512508
mov eax, dword [esp + 0x10]
push edi
lea ecx, [esp + 0x14]
mov eax, dword [eax - 8]
push eax
call fcn.0051231b
lea ecx, [esp + 0x18]
push eax
push ecx
call fcn.00434040
add esp, 0xc
lea ecx, [esp + 0x18]
push 0xc6
call fcn.00512508
push 0x591528
lea ecx, [esp + 0x18]
call fcn.005122c7
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
push 0x10
push edx
push eax
mov ecx, esi
call fcn.0050fb08
lea ecx, [esp + 0x18]
mov byte [esp + 0x1a0], bl
call fcn.00511eeb
lea ecx, [esp + 0x14]
mov byte [esp + 0x1a0], 0xc
call fcn.00511eeb
mov dword [esp + 0x1a0], 0xffffffff
lea ecx, [esp + 0x10]
jmp 0x425fe9
push 0x591510
push ebp
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, eax
test edx, edx
jne 0x425d32
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [0x598d50]
mov dword [esp + 0x10], eax
mov ebx, 0xf
mov dword [esp + 0x1a0], ebx
mov dword [esp + 0x14], eax
mov byte [esp + 0x1a0], 0x10
mov dword [esp + 0x18], eax
push 0x5914e8
lea ecx, [esp + 0x14]
push 0x70
push ecx
mov byte [esp + 0x1ac], 0x11
call fcn.0050a958
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x28]
add esp, 0xc
mov eax, dword [edx - 8]
push ecx
push eax
lea ecx, [esp + 0x18]
call fcn.0051231b
lea edx, [esp + 0x18]
push eax
push edx
call fcn.00434040
add esp, 0xc
lea ecx, [esp + 0x18]
push 0xc6
call fcn.00512508
push 0x5914dc
lea ecx, [esp + 0x18]
call fcn.005122c7
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push 0x10
push eax
push ecx
mov ecx, esi
call fcn.0050fb08
test ebp, ebp
je 0x425cfd
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 0x18]
mov byte [esp + 0x1a0], 0x10
call fcn.00511eeb
lea ecx, [esp + 0x14]
mov byte [esp + 0x1a0], bl
call fcn.00511eeb
mov dword [esp + 0x1a0], 0xffffffff
lea ecx, [esp + 0x10]
jmp 0x425fe9
mov ecx, 0x12
xor eax, eax
lea edi, [esp + 0x2c]
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x70c4]
mov dword [esp + 0x34], eax
lea eax, [esi + 0x6fc0]
mov dword [esp + 0x5c], eax
mov eax, 0x100
mov dword [esp + 0x60], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x30], ecx
lea eax, [esp + 0x2c]
lea ecx, [esi + 0x6ebc]
push eax
mov dword [esp + 0x30], 0x48
mov dword [esp + 0x3c], 4
mov dword [esp + 0x68], ecx
mov dword [esp + 0x40], 0x5914b8
call edx
test ebp, ebp
mov edi, eax
je 0x425d9d
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test edi, edi
jne 0x425fee
mov eax, dword [ebx]
test eax, eax
je 0x425dc4
push 0
push eax
call dword [fcn.005a1c30]
mov dword [ebx], 0
mov dword [esi + 0x70e0], 0x10
mov ecx, dword [esi + 0x70c4]
lea edi, [esi + 0x70d0]
push edi
push ebx
lea ebp, [esi + 0x6fc0]
push 3
push 2
push ebp
push ecx
call dword [fcn.005a1c2c]
mov ecx, dword [ebx]
mov dword [esp + 0x1c], eax
test ecx, ecx
je 0x425efe
cmp eax, 0x80100069
je 0x425efe
lea edx, [esp + 0x28]
lea eax, [esp + 0x74]
push edx
push eax
lea edx, [esp + 0x28]
push edi
lea eax, [esp + 0x30]
push edx
push eax
push ebp
push ecx
mov dword [esp + 0x40], 0x104
mov dword [esp + 0x44], 0x20
mov dword [esp + 0x3c], 0
call dword [0x5a1c28]
mov edi, eax
test edi, edi
mov dword [esp + 0x1c], edi
je 0x425ef7
mov eax, dword [0x598d50]
mov dword [esp + 0x14], eax
mov dword [esp + 0x1a0], 0x12
mov dword [esp + 0x10], eax
mov bl, 0x13
mov byte [esp + 0x1a0], bl
mov dword [esp + 0x18], eax
push 0x5914ac
lea ecx, [esp + 0x18]
push 0x70
push ecx
mov byte [esp + 0x1ac], 0x14
call fcn.0050a958
mov edx, dword [esp + 0x20]
add esp, 0xc
lea ecx, [esp + 0x14]
mov eax, dword [edx - 8]
push edi
push eax
call fcn.0051231b
push eax
lea eax, [esp + 0x18]
push eax
call fcn.00434040
add esp, 0xc
lea ecx, [esp + 0x18]
push 0xc6
call fcn.00512508
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
push 0x10
push ecx
push edx
mov ecx, esi
call fcn.0050fb08
lea ecx, [esp + 0x18]
mov byte [esp + 0x1a0], bl
call fcn.00511eeb
lea ecx, [esp + 0x10]
mov byte [esp + 0x1a0], 0x12
call fcn.00511eeb
mov dword [esp + 0x1a0], 0xffffffff
lea ecx, [esp + 0x14]
jmp 0x425fe9
test byte [esp + 0x20], 2
jne 0x425f0d
mov dword [esi + 0x70e0], 0x10
jmp 0x425ac7
mov dword [esi + 0x70e0], 0x20
mov eax, 1
jmp 0x425ff0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, ebp
jne 0x425f32
mov edi, 0x8010002e
mov eax, dword [0x598d50]
mov dword [esp + 0x10], eax
mov dword [esp + 0x1a0], 3
mov dword [esp + 0x14], eax
mov byte [esp + 0x1a0], 4
mov dword [esp + 0x18], eax
push 0x6b
lea ecx, [esp + 0x14]
mov byte [esp + 0x1a4], 5
call fcn.00512508
mov eax, dword [esp + 0x10]
push edi
lea ecx, [esp + 0x14]
mov eax, dword [eax - 8]
push eax
call fcn.0051231b
lea ecx, [esp + 0x18]
push eax
push ecx
call fcn.00434040
add esp, 0xc
lea ecx, [esp + 0x18]
push 0xc6
call fcn.00512508
push 0x5914a0
lea ecx, [esp + 0x18]
call fcn.005122c7
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
push 0x10
push edx
push eax
mov ecx, esi
call fcn.0050fb08
lea ecx, [esp + 0x18]
mov byte [esp + 0x1a0], 4
call fcn.00511eeb
lea ecx, [esp + 0x14]
mov byte [esp + 0x1a0], 3
call fcn.00511eeb
mov dword [esp + 0x1a0], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.00511eeb
xor eax, eax
mov ecx, dword [esp + 0x198]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x194
ret