Function at 0x4a0020
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4ff3cb
mov eax, dword fs:[0]
push eax
sub esp, 0x7c8
mov eax, dword [0x52e144]
xor eax, esp
mov dword [esp + 0x7c0], eax
push ebx
push esi
push edi
mov eax, dword [0x52e144]
xor eax, esp
push eax
lea eax, [esp + 0x7d8]
mov dword fs:[0], eax
lea eax, [esp + 0x13]
push eax
lea ecx, [esp + 0x17]
push ecx
lea ecx, [esp + 0x58]
xor esi, esi
call fcn.0041fd40
push 0x103
lea edx, [esp + 0x5c1]
push esi
push edx
mov dword [esp + 0x7ec], esi
mov byte [esp + 0x5c8], 0
call fcn.004b6dc0
push 0x103
lea eax, [esp + 0x6d5]
push esi
push eax
mov byte [esp + 0x6dc], 0
call fcn.004b6dc0
add esp, 0x18
push 0x104
lea ecx, [esp + 0x5c0]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x104
lea edx, [esp + 0x6c8]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [esp + 0x5bc]
push eax
call fcn.00404330
lea ecx, [esp + 0x6c8]
push ecx
mov dword [esp + 0x40], eax
call fcn.00404330
add esp, 8
xor ecx, ecx
mov dword [esp + 0x44], eax
mov dword [esp + 0x18], ecx
jmp 0x4a0110
mov eax, ecx
imul eax, eax, 0x6c
cmp byte [eax + 0x539708], 0
je 0x4a0608
mov ebx, dword [eax + 0x539714]
mov eax, dword [esp + 0x68]
mov edi, dword [eax + 4]
cmp byte [edi + 0x11], 0
mov esi, edi
jne 0x4a015b
mov edx, dword [esi + 8]
push edx
lea ecx, [esp + 0x54]
call fcn.0041de60
mov esi, dword [esi]
push edi
call fcn.004b722a
add esp, 4
cmp byte [esi + 0x11], 0
mov edi, esi
je 0x4a0137
mov eax, dword [esp + 0x68]
mov dword [eax + 4], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x6c], 0
mov dword [eax], eax
mov eax, dword [esp + 0x68]
push ebx
push 8
mov dword [eax + 8], eax
call dword [0x548d20]
mov esi, eax
lea eax, [esp + 0x7c]
push eax
push esi
mov dword [esp + 0x84], 0x224
call dword [0x548d2c]
jmp 0x4a01a0
mov ecx, dword [esp + 0x90]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x74]
mov dword [esp + 0x18], ecx
push eax
lea ecx, [esp + 0x58]
call fcn.004203a0
lea ecx, [esp + 0x7c]
push ecx
push esi
call dword [0x548d30]
test eax, eax
jne 0x4a01a0
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call edi
push ebx
call fcn.0043d1a0
add esp, 4
push 0x1c
lea edx, [esp + 0x20]
push edx
mov ebx, eax
push 0
push ebx
mov dword [esp + 0x24], ebx
call dword [0x5385ec]
xor ecx, ecx
cmp eax, 0x1c
sete cl
mov esi, ecx
test esi, esi
je 0x4a05fd
jmp 0x4a0210
test dword [esp + 0x34], 0x1000000
jne 0x4a0227
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x28]
jmp 0x4a05ab
mov eax, dword [esp + 0x1c]
cmp dword [esp + 0x20], eax
je 0x4a023c
mov ecx, dword [esp + 0x28]
add eax, ecx
jmp 0x4a05ad
lea edx, [esp + 0x40]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
push edx
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x58]
call fcn.0041f7e0
mov eax, dword [esp + 0x48]
mov esi, dword [esp + 0x68]
test eax, eax
je 0x4a0269
cmp eax, dword [esp + 0x50]
je 0x4a026e
call fcn.004b7c48
cmp dword [esp + 0x4c], esi
jne 0x4a059f
push 0x103
lea ecx, [esp + 0x2a9]
push 0
push ecx
mov byte [esp + 0x2b0], 0
call fcn.004b6dc0
push 0x103
lea edx, [esp + 0x3bd]
push 0
push edx
mov byte [esp + 0x3c4], 0
call fcn.004b6dc0
mov ecx, dword [esp + 0x34]
add esp, 0x18
lea eax, [esp + 0x4b4]
push eax
push ecx
mov ecx, dword [0x548f00]
push ebx
mov byte [esp + 0x4c0], 0
call fcn.00408d80
xor eax, eax
jmp 0x4a02e0
mov cl, byte [esp + eax + 0x4b4]
mov byte [esp + eax + 0x2a4], cl
inc eax
test cl, cl
jne 0x4a02e0
lea edx, [esp + 0x4b4]
push 0x5c
push edx
call fcn.004b9510
add esp, 8
test eax, eax
je 0x4a030a
inc eax
push eax
call fcn.00404330
mov esi, eax
lea eax, [esp + 0x2a8]
push eax
call fcn.0043f6f0
add esp, 8
test eax, eax
jne 0x4a0336
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x28]
lea eax, [edx + ecx]
jmp 0x4a05ad
lea eax, [esp + 0x2a4]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4a0340
sub eax, edx
push eax
lea eax, [esp + 0x2a8]
push eax
lea ecx, [esp + 0x3b4]
push 0x104
push ecx
call fcn.004bb3bf
lea edx, [esp + 0x2b4]
push 0x5c
push edx
call fcn.004b9510
add esp, 0x18
test eax, eax
je 0x4a037d
mov byte [eax], 0
lea eax, [esp + 0x2a4]
push eax
call fcn.00404330
add esp, 4
push 1
lea ecx, [esp + 0x3b0]
push ecx
mov ecx, 0x538cb8
mov ebx, eax
call fcn.00406500
test al, al
jne 0x4a059f
lea edx, [esp + 0x3ac]
push edx
call fcn.004117b0
add esp, 4
test eax, eax
jne 0x4a059f
cmp ebx, dword [esp + 0x38]
je 0x4a059f
cmp ebx, dword [esp + 0x44]
je 0x4a059f
cmp dword [0x54a138], 0x4e70
jne 0x4a03ef
cmp esi, 0xf700551f
je 0x4a059f
cmp dword [esp + 0x1c], 0x60000000
jbe 0x4a0405
cmp esi, 0x557713de
je 0x4a059f
push 0x522068
call fcn.00404690
push eax
lea eax, [esp + 0x4bc]
push eax
call fcn.004b8730
add esp, 0xc
test eax, eax
jne 0x4a059f
cmp dword [esp + 0x1c], 0x400000
je 0x4a059f
push 0x522054
call fcn.00404690
push eax
lea ecx, [esp + 0x4bc]
push ecx
call fcn.004b8730
add esp, 0xc
test eax, eax
jne 0x4a059f
cmp esi, 0x9882e64c
je 0x4a059f
cmp esi, 0x95274c8f
je 0x4a059f
cmp esi, 0x2b5ad60d
je 0x4a059f
cmp dword [esp + 0x1c], 0x458a0000
je 0x4a059f
cmp esi, 0xbc226639
je 0x4a059f
cmp esi, 0x86f2e41d
je 0x4a059f
cmp esi, 0x2d5cae0e
je 0x4a059f
cmp esi, 0x21b326f3
je 0x4a059f
cmp esi, 0xfa08e615
je 0x4a059f
cmp esi, 0x2eb66fca
je 0x4a059f
cmp esi, 0xb70aa2a5
je 0x4a059f
cmp esi, 0x97230934
je 0x4a059f
cmp esi, 0x47b6d053
je 0x4a059f
cmp esi, 0xc8697995
je 0x4a059f
cmp esi, 0xa7a45094
je 0x4a059f
cmp esi, 0x43f9aac4
je 0x4a059f
cmp esi, 0xd3b96297
je 0x4a059f
cmp esi, 0x697da034
je 0x4a059f
cmp esi, 0x1b2d1bf4
je 0x4a059f
cmp esi, 0xd103a13e
je 0x4a059f
cmp esi, 0x74f37aae
je 0x4a059f
cmp esi, 0xd27b6dac
je 0x4a059f
cmp esi, 0x41ef689c
je 0x4a059f
lea edx, [esp + 0x3ac]
push edx
call fcn.00413e70
add esp, 4
cmp al, 1
jne 0x4a05d0
mov eax, dword [0x527d88]
push 0
push 0
push eax
push 0x50d930
call fcn.00404690
add esp, 4
push eax
lea ecx, [esp + 0x3bc]
push ecx
push 0x522034
push 0
push 0xe64219
push 0x20
push 0x13
call fcn.0043c0b0
add esp, 0x28
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x1c]
mov ebx, dword [esp + 0x14]
add eax, edx
push 0x1c
lea ecx, [esp + 0x20]
push ecx
push eax
push ebx
call dword [0x5385ec]
xor edx, edx
cmp eax, 0x1c
sete dl
mov esi, edx
test esi, esi
jne 0x4a0210
jmp 0x4a05fd
mov ecx, dword [esp + 0x3c]
lea eax, [esp + 0x4b4]
push eax
push ecx
push 0x522020
mov esi, 1
call fcn.00404690
add esp, 4
push eax
push 0x527e20
call fcn.00401350
add esp, 0x10
mov edx, dword [esp + 0x14]
push edx
call edi
mov ecx, dword [esp + 0x18]
inc ecx
mov dword [esp + 0x18], ecx
cmp ecx, 0xa
jb 0x4a0110
lea ecx, [esp + 0x50]
mov dword [esp + 0x7e0], 0xffffffff
call fcn.004212b0
mov eax, esi
mov ecx, dword [esp + 0x7d8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x7c0]
xor ecx, esp
call fcn.004b6da3
mov esp, ebp
pop ebp
ret