Function at 0x637860
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x87c661
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x8ce6f4]
xor eax, esp
mov dword [esp + 0x228], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x8ce6f4]
xor eax, esp
push eax
lea eax, [esp + 0x240]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi]
mov ebp, dword [eax - 0xc]
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x248], eax
cmp ebp, eax
je 0x637b23
mov ebx, ebp
and ebx, 3
mov dword [esp + 0x14], ebx
cmp ebx, 1
je 0x637b23
push ebp
lea ecx, [esp + 0x20]
call fcn.004cd4f0
test al, al
je 0x637b23
mov eax, dword [esi]
mov edi, dword [esp + 0x1c]
lea esi, [eax + ebp*2]
mov ecx, edi
cmp eax, esi
jae 0x6378ff
lea ebx, [ebx]
mov dl, byte [eax]
sub dl, 0x21
mov byte [ecx], dl
add eax, 2
inc ecx
cmp eax, esi
jb 0x6378f0
and ebp, 0xfffffffc
jle 0x63795a
lea ecx, [ebp - 1]
lea esi, [edi + 1]
shr ecx, 2
mov eax, esi
inc ecx
movzx edx, byte [eax]
movzx ebx, byte [eax - 1]
shr dl, 4
and dl, 3
add bl, bl
add bl, bl
or dl, bl
mov byte [esi - 1], dl
movzx edx, byte [eax + 1]
movzx ebx, byte [eax]
shr dl, 2
and dl, 0xf
shl bl, 4
or dl, bl
mov byte [esi], dl
movzx edx, byte [eax + 2]
movzx ebx, byte [eax + 1]
and dl, 0x3f
shl bl, 6
or dl, bl
mov byte [esi + 1], dl
add eax, 4
add esi, 3
dec ecx
jne 0x637910
mov ebx, dword [esp + 0x14]
lea eax, [ebp + ebp*2]
cdq
and edx, 3
lea esi, [edx + eax]
sar esi, 2
cmp ebx, 2
jne 0x637985
mov al, byte [edi + ebp + 1]
mov cl, byte [edi + ebp]
shr al, 4
add cl, cl
and al, 3
add cl, cl
or al, cl
mov byte [esi + edi], al
inc esi
jmp 0x6379bd
cmp ebx, 3
jne 0x6379bd
movzx edx, byte [edi + ebp + 1]
mov cl, byte [edi + ebp]
lea eax, [edi + ebp + 1]
shr dl, 4
and dl, bl
add cl, cl
add cl, cl
or dl, cl
mov byte [esi + edi], dl
movzx edx, byte [edi + ebp + 2]
mov al, byte [eax]
shr dl, 2
and dl, 0xf
shl al, 4
or dl, al
mov byte [esi + edi + 1], dl
add esi, 2
push 0x441254
or ebp, 0xffffffff
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x6379fe
push 0x44123c
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x6379ee
lea ecx, [esp + 0x14]
push ecx
push 0
push esi
push edi
call eax
mov ebp, eax
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp ebp, 0xffffffff
jne 0x637b16
lea edx, [esp + 0x34]
push edx
push 0x104
xor ebx, ebx
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ecx, esi
xor eax, eax
sar ecx, 2
mov dword [esp + 0x18], eax
cmp ecx, 2
jl 0x637a33
lea edx, [ecx - 1]
add ebx, dword [edi + eax*4]
add ebp, dword [edi + eax*4 + 4]
add eax, 2
cmp eax, edx
jl 0x637a25
cmp eax, ecx
jge 0x637a3e
mov eax, dword [edi + eax*4]
mov dword [esp + 0x18], eax
add ebx, ebp
add dword [esp + 0x18], ebx
call fcn.007cff5d
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x637a5e
push 0x80004005
call fcn.004a8210
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x18]
push ecx
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x1c]
push 0x44121c
push eax
mov byte [esp + 0x258], 1
call fcn.004aa600
mov ebx, dword [esp + 0x24]
push ebx
call fcn.005c2230
add esp, 0x14
test al, al
jne 0x637aeb
lea ecx, [esp + 0x20]
call fcn.007ddfe5
push 0
push 0x9041
push ebx
lea ecx, [esp + 0x2c]
mov byte [esp + 0x254], 2
call fcn.007de497
test eax, eax
je 0x637ada
push esi
push edi
lea ecx, [esp + 0x28]
call fcn.007ddce9
lea ecx, [esp + 0x20]
call fcn.007ddf80
lea ecx, [esp + 0x20]
mov byte [esp + 0x248], 1
call fcn.007de0e4
push ebx
call dword [sym.imp.GDI32.dll_AddFontResourceW]
lea eax, [ebx - 0x10]
mov byte [esp + 0x248], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x637b16
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push edi
call fcn.007c8563
add esp, 4
mov al, 1
jmp 0x637b32
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.007c8563
add esp, 4
xor al, al
mov ecx, dword [esp + 0x240]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x228]
xor ecx, esp
call fcn.0080262b
add esp, 0x238
ret