Function at 0x504084
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffed8
push ebx
xor ecx, ecx
mov dword [ebp - 0x128], ecx
mov dword [ebp - 0x124], ecx
mov dword [ebp - 0x120], ecx
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 0x114], ecx
mov dword [ebp - 0x118], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x5043b6
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xff
lea eax, [ebp - 0x110]
push eax
call sub.KERNEL32.DLL_GetSystemDirectoryA
lea eax, [ebp - 0xc]
lea edx, [ebp - 0x110]
mov ecx, pe_nt_image_headers32
call fcn.00404d24
lea eax, [ebp - 0x10]
mov ecx, 0x5043cc
mov edx, dword [ebp - 0xc]
call fcn.00404dc0
mov eax, dword [ebp - 0x10]
call fcn.00409ebc
test al, al
je 0x504116
mov eax, dword [ebp - 0x10]
call fcn.00409fe4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x314]
call fcn.004c88f0
mov eax, dword [eax + 0x30]
mov edx, dword [eax]
call dword [edx + 0x14c]
test eax, eax
jle 0x5042fb
push 4
mov ecx, 0x5043d8
mov edx, 0x5043e0
mov eax, dword [0x574e00]
mov eax, dword [eax]
call fcn.004909f8
cmp eax, 6
jne 0x504380
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x334]
mov dl, 1
call fcn.0046f918
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x334]
mov edx, dword [eax]
call dword [edx + 0x80]
xor eax, eax
push ebp
push 0x5042f4
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x348]
call fcn.004d4e2c
mov dl, 1
mov eax, dword [0x41ce58]
call fcn.00403b90
mov dword [0x576d50], eax
push 0
push 0
mov eax, dword [0x576d50]
call fcn.00421868
mov dword [0x576d4c], 0x576d54
mov eax, dword [0x576d4c]
mov edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x348]
call fcn.004d5188
mov edx, dword [0x576d50]
mov eax, 0x576d54
call fcn.0050272c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x32c]
mov edx, 0x504414
call fcn.004b9b98
lea edx, [ebp - 0x118]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov eax, dword [ebp - 0x118]
lea edx, [ebp - 0x114]
call fcn.0040961c
mov edx, dword [ebp - 0x114]
mov eax, 0x576d64
call fcn.00404b08
mov al, byte [0x50441c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x314]
call fcn.004c88f0
mov eax, dword [eax + 0x30]
push eax
lea eax, [ebp - 0x128]
mov edx, dword [0x576d64]
call fcn.00416074
lea ecx, [ebp - 0x128]
mov edx, 0x504414
pop eax
mov ebx, dword [eax]
call dword [ebx + 0x244]
test al, al
je 0x5042ba
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x314]
call fcn.004c88f0
mov eax, dword [eax + 0x30]
call fcn.004bb358
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x314]
call fcn.004c88f0
mov eax, dword [eax + 0x30]
mov edx, 0x504428
call fcn.004b9b98
mov edx, dword [0x576d50]
call fcn.004b3b18
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x314]
call fcn.004c88f0
mov eax, dword [eax + 0x30]
mov edx, dword [eax]
call dword [edx + 0x24c]
jmp 0x5042dc
push 0
mov ecx, 0x504430
mov edx, 0x504438
mov eax, dword [0x574e00]
mov eax, dword [eax]
call fcn.004909f8
call fcn.004044fc
jmp 0x504380
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5042fb
mov eax, dword [0x576d50]
call fcn.00403bc0
ret
mov eax, dword [0x574ae0]
mov eax, dword [eax]
mov edx, dword [ebp - 8]
call fcn.00555a40
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2fc]
mov dl, 1
mov ecx, dword [eax]
call dword [ecx + 0x64]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x314]
mov dl, 1
mov ecx, dword [eax]
call dword [ecx + 0x64]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x314]
mov byte [eax + 0x2a0], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x334]
xor edx, edx
call fcn.0046f918
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x328]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x64]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x348]
or ecx, 0xffffffff
mov edx, 3
call fcn.004cf6d4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x300]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x64]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5043bd
lea eax, [ebp - 0x128]
call fcn.00411928
lea eax, [ebp - 0x118]
mov edx, 2
call fcn.00404ad8
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00404ad8
ret