Function at 0x4637d0
Capabilities:
Get common file path

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55cb10
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x240
mov eax, dword [0x60b3c4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x244], edi
lea eax, [ebp - 0x240]
mov dword [ebp - 0x244], edi
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], 0x200
push 0x100
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov esi, eax
test esi, esi
je 0x4638a1
nop
mov ecx, dword [ebp - 0x38]
mov eax, ecx
shr eax, 1
cmp esi, eax
jb 0x4638f2
add esi, esi
cmp esi, ecx
jbe 0x46388e
push esi
call fcn.0050fd59
mov ecx, dword [ebp - 0x40]
add esp, 4
mov dword [ebp - 0x40], eax
test ecx, ecx
je 0x463884
push ecx
call fcn.0050fd90
mov eax, dword [ebp - 0x40]
add esp, 4
mov ecx, esi
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], ecx
jmp 0x463891
mov eax, dword [ebp - 0x3c]
shr ecx, 1
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov esi, eax
test esi, esi
jne 0x463850
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [edi + 0x18], 0
mov dword [edi], eax
mov dword [edi + 4], 0x61d9d0
mov dword [edi + 8], 0
mov dword [edi + 8], 0
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x4638d2
push eax
call fcn.0050fd90
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0050fd4b
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
mov eax, dword [ebp - 0x3c]
xorps xmm0, xmm0
mov dword [ebp - 0x244], eax
movups xmmword [ebp - 0x2c], xmm0
cmp esi, 0x7ffffffe
ja 0x463a1e
cmp esi, 8
jae 0x463939
mov dword [ebp - 0x1c], esi
add esi, esi
push esi
push eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
push eax
call fcn.00512a40
add esp, 0xc
xor eax, eax
mov word [ebp + esi - 0x2c], ax
jmp 0x4639eb
mov eax, esi
or eax, 7
cmp eax, 0x7ffffffe
jbe 0x46394c
mov eax, SysReAllocString
jmp 0x463956
mov ecx, 0xa
cmp eax, ecx
cmovb eax, ecx
xor ecx, ecx
mov dword [ebp - 0x24c], eax
add eax, 1
setb cl
neg ecx
or ecx, eax
cmp ecx, 0x7fffffff
ja 0x463a19
add ecx, ecx
cmp ecx, 0x1000
jb 0x4639a5
lea eax, [ecx + 0x23]
cmp eax, ecx
jbe 0x463a19
push eax
call fcn.0050fd59
add esp, 4
test eax, eax
je 0x463a23
lea ecx, [eax + 0x23]
and ecx, 0xffffffe0
mov dword [ecx - 4], eax
jmp 0x4639b8
test ecx, ecx
je 0x4639b6
push ecx
call fcn.0050fd59
add esp, 4
mov ecx, eax
jmp 0x4639b8
xor ecx, ecx
mov eax, dword [ebp - 0x24c]
mov dword [ebp - 0x1c], esi
add esi, esi
push esi
push dword [ebp - 0x244]
mov dword [ebp - 0x248], ecx
push ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x18], eax
call fcn.00512a40
mov eax, dword [ebp - 0x248]
add esp, 0xc
xor ecx, ecx
mov word [eax + esi], cx
mov byte [edi + 0x18], 1
xorps xmm0, xmm0
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
movups xmm0, xmmword [ebp - 0x2c]
mov dword [edi + 0x14], 0
movups xmmword [edi], xmm0
movq xmm0, qword [ebp - 0x1c]
movq qword [edi + 0x10], xmm0
jmp 0x4638c2
call fcn.00415c20
call fcn.00415cd0
call fcn.0052865a
int3