Function at 0x451340
Capabilities:
Get common file path
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ac2e6
mov eax, dword fs:[0]
push eax
sub esp, 0x144
mov eax, dword [0x4d1088]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xorps xmm0, xmm0
mov dword [ebp - 0xe0], 0
mov dword [ebp - 0xdc], 0
xor ebx, ebx
mov dword [ebp - 0x108], 0
mov edx, 0x53b638
movq qword [ebp - 0x104], xmm0
mov dword [ebp - 0xfc], 0
mov dword [ebp - 0xe8], 0
mov dword [ebp - 0xe4], 0
mov dword [ebp - 0xf8], 0
movq qword [ebp - 0xf4], xmm0
mov dword [ebp - 0xec], 0
mov ecx, 1
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
sete al
test al, al
jne 0x451400
add edx, 4
inc ebx
cmp edx, 0x53b7c8
jl 0x4513d8
or eax, 0xffffffff
jmp 0x4517e6
shl ebx, 0xc
add ebx, 0x4d7638
jne 0x451413
or eax, 0xffffffff
jmp 0x4517e6
cmp dword [0x53bb04], 0x10
mov edi, 0x53baf0
mov eax, dword [0x53bb00]
mov ecx, edi
cmovae ecx, dword [0x53baf0]
add eax, ecx
cmp dword [0x53bb04], 0x10
push ecx
cmovae edi, dword [0x53baf0]
lea ecx, [ebp - 0x138]
push eax
push edi
call fcn.004445b0
mov dword [ebp - 4], 0
cmp word [0x4d7430], 0
jne 0x45147e
push 0x4d7430
push 0
push 0
push 0x8023
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jns 0x45147e
or edi, 0xffffffff
jmp 0x4517c6
cmp dword [0x53baec], 0x10
mov esi, 0x53bad8
mov edi, 0x53bad8
mov dword [ebp - 0x10c], 7
cmovae esi, dword [0x53bad8]
add esi, dword [0x53bae8]
cmp dword [0x53baec], 0x10
mov dword [ebp - 0x110], 0
cmovae edi, dword [0x53bad8]
xor eax, eax
mov word [ebp - 0x120], ax
mov eax, esi
sub eax, edi
cmp eax, 7
je 0x451505
push 1
push eax
lea ecx, [ebp - 0x120]
call fcn.00449800
test al, al
je 0x451505
cmp dword [ebp - 0x10c], 8
lea eax, [ebp - 0x120]
mov dword [ebp - 0x110], 0
cmovae eax, dword [ebp - 0x120]
xor ecx, ecx
mov word [eax], cx
push dword [ebp - 0xdc]
lea ecx, [ebp - 0x120]
push esi
push edi
call fcn.00445ac0
cmp dword [ebp - 0x10c], 8
lea eax, [ebp - 0x120]
cmovae eax, dword [ebp - 0x120]
push eax
push 0x4d7430
push str._s_s
lea eax, [ebp - 0xd8]
push 0xc8
push eax
call fcn.00451120
mov eax, dword [ebp - 0x10c]
add esp, 0x14
cmp eax, 8
jb 0x451569
inc eax
lea ecx, [ebp - 0x120]
push eax
push dword [ebp - 0x120]
call fcn.00432cc0
xor eax, eax
mov dword [ebp - 0x13c], 7
mov dword [ebp - 0x140], 0
mov word [ebp - 0x150], ax
cmp word [ebp - 0xd8], ax
jne 0x451593
xor ecx, ecx
jmp 0x4515af
lea ecx, [ebp - 0xd8]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4515a0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0xd8]
push eax
lea ecx, [ebp - 0x150]
call fcn.00449880
lea eax, [ebp - 0x150]
mov byte [ebp - 4], 1
push 0
push eax
call fcn.004778b0
add esp, 8
xor esi, esi
nop dword [eax]
cmp dword [ebp - 0x124], 8
lea eax, [ebp - 0x138]
push esi
cmovae eax, dword [ebp - 0x138]
push eax
lea eax, [ebp - 0xd8]
mov dword [ebx], 0
push eax
push str._s_s__d.log
push 0x800
push ebx
call fcn.00451020
add esp, 0x18
push 0
push 0x80
push 4
push 0
push 1
push 0xc0000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp + esi*4 - 0xe0], edi
cmp edi, 0xffffffff
je 0x4516ba
lea eax, [ebp - 0x108]
lea eax, [eax + esi*8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x4516ae
lea eax, [ebp - 0xf8]
lea eax, [eax + esi*8]
push eax
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x4516ae
cmp dword [ebp + esi*8 - 0x104], 0
mov eax, dword [0x53b7c8]
jl 0x451697
jg 0x45168a
cmp dword [ebp + esi*8 - 0x108], eax
jbe 0x451697
mov dword [ebp + esi*4 - 0xe8], 1
jmp 0x4516a2
mov dword [ebp + esi*4 - 0xe8], 0
inc esi
cmp esi, 2
jl 0x4515e0
jmp 0x4516b5
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0xe8], 0
je 0x451765
push dword [ebp - 0xe0]
call eax
cmp dword [ebp - 0xe4], 0
je 0x45175d
push dword [ebp - 0xdc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xf4]
cmp eax, dword [ebp - 0xec]
jl 0x45170a
jg 0x451706
mov eax, dword [ebp - 0xf8]
cmp eax, dword [ebp - 0xf0]
jb 0x45170a
push 1
jmp 0x45170c
push 0
cmp dword [ebp - 0x124], 8
lea eax, [ebp - 0x138]
cmovae eax, dword [ebp - 0x138]
push eax
lea eax, [ebp - 0xd8]
push eax
push str._s_s__d.log
push 0x800
push ebx
call fcn.00451020
add esp, 0x18
push 0
push 0x80
push 2
push 0
push 1
push 0xc0000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x451773
jmp 0x451780
mov edi, dword [ebp - 0xdc]
jmp 0x451773
push dword [ebp - 0xdc]
mov edi, dword [ebp - 0xe0]
call eax
push 2
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp - 0x13c]
cmp eax, 8
jb 0x45179e
inc eax
lea ecx, [ebp - 0x150]
push eax
push dword [ebp - 0x150]
call fcn.00432cc0
mov edx, 0x53b638
mov ecx, 0x4d7638
mov esi, 0x64
nop dword [eax]
cmp ecx, ebx
jne 0x4517b8
xor eax, eax
xchg dword [edx], eax
add ecx, 0x1000
add edx, 4
sub esi, 1
jne 0x4517b0
mov ecx, dword [ebp - 0x124]
cmp ecx, 8
jb 0x4517e4
inc ecx
push ecx
push dword [ebp - 0x138]
lea ecx, [ebp - 0x138]
call fcn.00432cc0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047a4d6
mov esp, ebp
pop ebp
ret