Function at 0x51d1e0
Capabilities:
Check if file exists
Contain obfuscated stackstrings
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x63356b
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x70a308]
xor eax, esp
mov dword [esp + 0x228], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x70a308]
xor eax, esp
push eax
lea eax, [esp + 0x240]
mov dword fs:[0], eax
mov eax, dword [esp + 0x250]
push 0x6513c0
mov dword [esp + 0x18], eax
xor ebx, ebx
call fcn.00445b00
mov ebp, eax
add esp, 4
cmp ebp, ebx
je 0x51d434
push str.SHGetFolderPathW
push ebp
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
cmp esi, ebx
je 0x51d42d
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
lea ecx, [esp + 0x34]
push ecx
push ebx
push ebx
push 0x24
push ebx
call esi
cmp eax, ebx
jne 0x51d427
lea eax, [esp + 0x34]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x51d277
sub eax, edx
sar eax, 1
cmp word [esp + eax*2 + 0x32], 0x5c
je 0x51d2a9
lea edi, [esp + 0x34]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x51d295
mov edx, dword [0x64f8c0]
mov dword [edi], edx
call fcn.00445c40
test eax, eax
lea eax, [esp + 0x34]
je 0x51d2fa
add eax, 0xfffffffe
lea esp, [esp]
mov cx, word [eax + 2]
add eax, 2
cmp cx, bx
jne 0x51d2c0
mov ecx, dword [str.Sysnative]
mov edx, dword [0x659b60]
mov dword [eax], ecx
mov ecx, dword [0x659b64]
mov dword [eax + 4], edx
mov edx, dword [0x659b68]
mov dword [eax + 8], ecx
mov ecx, dword [0x659b6c]
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], ecx
jmp 0x51d33a
add eax, 0xfffffffe
lea ecx, [ecx]
mov cx, word [eax + 2]
add eax, 2
cmp cx, bx
jne 0x51d300
mov edx, dword [str.System32]
mov ecx, dword [0x659b4c]
mov dword [eax], edx
mov edx, dword [0x659b50]
mov dword [eax + 4], ecx
mov ecx, dword [0x659b54]
mov dword [eax + 8], edx
mov dx, word [0x659b58]
mov dword [eax + 0xc], ecx
mov word [eax + 0x10], dx
mov al, 0x74
mov byte [esp + 0x2d], al
mov byte [esp + 0x2f], al
lea eax, [esp + 0x24]
push eax
mov byte [esp + 0x28], 0x4d
mov byte [esp + 0x29], 0x66
mov byte [esp + 0x2a], 0x78
mov byte [esp + 0x2b], 0x7f
mov byte [esp + 0x2c], 0x7d
mov byte [esp + 0x2d], 0x7e
mov byte [esp + 0x2e], 0x70
mov byte [esp + 0x2f], 0x75
mov byte [esp + 0x30], 0x3f
mov byte [esp + 0x32], 0x69
mov byte [esp + 0x34], bl
call fcn.0051d190
add esp, 4
xor ecx, ecx
push ebx
lea edx, [esp + 0x28]
mov word [esp + 0x20], cx
push edx
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x28], ebx
call fcn.00401960
mov dword [esp + 0x248], ebx
mov eax, dword [esp + 0x18]
cmp eax, ebx
jne 0x51d3b8
lea eax, [esp + 0x1c]
mov edx, eax
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x51d3c0
lea edi, [esp + 0x34]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
cmp cx, bx
jne 0x51d3d4
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [esp + 0x34]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x51d413
lea ecx, [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x18]
call fcn.004017d0
mov ebx, 1
mov dword [esp + 0x248], 0xffffffff
lea ecx, [esp + 0x18]
call fcn.004011f0
call dword [sym.imp.ole32.dll_CoUninitialize]
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, ebx
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.005f85e7
add esp, 0x238
ret