Function at 0x479490
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4c4efc
mov eax, dword fs:[0]
push eax
sub esp, 0x19c
mov eax, dword [0x4f2fb0]
xor eax, esp
mov dword [esp + 0x198], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4f2fb0]
xor eax, esp
push eax
lea eax, [esp + 0x1b0]
mov dword fs:[0], eax
push pe_nt_image_headers32
lea eax, [esp + 0xb0]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x4ca838
lea ecx, [esp + 0x18]
call fcn.00404d90
mov eax, dword [esp + 0x14]
mov esi, dword [eax - 0xc]
mov bl, byte [esp + 0xac]
xor ebp, ebp
cmp esi, ebp
mov dword [esp + 0x1b8], ebp
jg 0x479511
push 0x80070057
call fcn.00401260
cmp dword [eax - 4], 1
jle 0x479527
mov ecx, esi
push ecx
lea ecx, [esp + 0x18]
call fcn.004013a0
mov eax, dword [esp + 0x14]
cmp esi, ebp
mov byte [eax], bl
jl 0x479507
mov eax, dword [esp + 0x14]
cmp esi, dword [eax - 8]
jg 0x479507
mov dword [eax - 0xc], esi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x14]
mov byte [esi + edx], 0
call fcn.00404690
push 2
push 0x4cc73c
lea ecx, [esp + 0x1c]
call fcn.00404550
call fcn.004835e8
xor ecx, ecx
cmp eax, ebp
setne cl
cmp ecx, ebp
jne 0x479574
push 0x80004005
call fcn.00401260
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push str.211223093231243231
mov byte [esp + 0x1c0], 1
call fcn.00404d90
lea ecx, [esp + 0x20]
push ecx
call fcn.004790b0
add esp, 8
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1bc], 2
call fcn.004017f0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
or ebx, 0xffffffff
mov byte [esp + 0x1b8], 1
lea edx, [eax + 0xc]
mov ecx, ebx
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4795e6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x18]
mov eax, dword [edi - 0xc]
push eax
push edi
lea ecx, [esp + 0x1c]
call fcn.00404550
lea ecx, [esp + 0x28]
call fcn.00487d67
mov ecx, dword [esp + 0x14]
push ebp
push ecx
lea ecx, [esp + 0x30]
mov byte [esp + 0x1c0], 3
call fcn.00487dfc
lea ecx, [esp + 0x28]
cmp eax, ebp
jne 0x47967e
mov byte [esp + 0x1b8], 1
call fcn.00487d8d
lea eax, [edi - 0x10]
mov byte [esp + 0x1b8], 0
lea edx, [eax + 0xc]
mov ecx, ebx
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x479650
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x1b8], ebx
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebx
dec ebx
test ebx, ebx
jg 0x479674
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x479779
call fcn.00487a54
lea ecx, [esp + 0x28]
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
call fcn.00487a90
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x2c]
call fcn.00487c84
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x8c]
push eax
call fcn.00499e3f
add esp, 8
cmp eax, ebp
jne 0x4796c8
mov ebp, dword [esp + 0x9c]
add ebp, 0x76c
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x44]
push edx
call fcn.00499e3f
add esp, 8
test eax, eax
jne 0x4796e5
mov esi, dword [esp + 0x50]
inc esi
jmp 0x4796e7
xor esi, esi
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x68]
push ecx
call fcn.00499e3f
add esp, 8
neg eax
sbb eax, eax
imul esi, esi, 0x25
add ebp, 0xfffff844
imul ebp, ebp, 0x22d
not eax
and eax, dword [esp + 0x70]
lea ecx, [esp + 0x28]
add ebp, eax
add esi, ebp
call fcn.0048796e
lea ecx, [esp + 0x28]
mov byte [esp + 0x1b8], 1
call fcn.00487d8d
lea eax, [edi - 0x10]
mov byte [esp + 0x1b8], 0
lea edx, [eax + 0xc]
mov ecx, ebx
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x479753
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x1b8], ebx
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebx
dec ebx
test ebx, ebx
jg 0x479777
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x1b0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x198]
xor ecx, esp
call fcn.004982db
add esp, 0x1a8
ret