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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ac896
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 0x451680
add edx, 4
inc ebx
cmp edx, 0x53b7c8
jl 0x451658
or eax, 0xffffffff
jmp 0x451a66
shl ebx, 0xc
add ebx, 0x4d7638
jne 0x451693
or eax, 0xffffffff
jmp 0x451a66
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.00444830
mov dword [ebp - 4], 0
cmp word [0x4d7430], 0
jne 0x4516fe
push 0x4d7430
push 0
push 0
push 0x8023
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jns 0x4516fe
or edi, 0xffffffff
jmp 0x451a46
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 0x451785
push 1
push eax
lea ecx, [ebp - 0x120]
call fcn.00449a80
test al, al
je 0x451785
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.00445d40
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.004513a0
mov eax, dword [ebp - 0x10c]
add esp, 0x14
cmp eax, 8
jb 0x4517e9
inc eax
lea ecx, [ebp - 0x120]
push eax
push dword [ebp - 0x120]
call fcn.00432db0
xor eax, eax
mov dword [ebp - 0x13c], 7
mov dword [ebp - 0x140], 0
mov word [ebp - 0x150], ax
cmp word [ebp - 0xd8], ax
jne 0x451813
xor ecx, ecx
jmp 0x45182f
lea ecx, [ebp - 0xd8]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x451820
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0xd8]
push eax
lea ecx, [ebp - 0x150]
call fcn.00449b00
lea eax, [ebp - 0x150]
mov byte [ebp - 4], 1
push 0
push eax
call fcn.00477e40
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.004512a0
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 0x45193a
lea eax, [ebp - 0x108]
lea eax, [eax + esi*8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x45192e
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 0x45192e
cmp dword [ebp + esi*8 - 0x104], 0
mov eax, dword [0x53b7c8]
jl 0x451917
jg 0x45190a
cmp dword [ebp + esi*8 - 0x108], eax
jbe 0x451917
mov dword [ebp + esi*4 - 0xe8], 1
jmp 0x451922
mov dword [ebp + esi*4 - 0xe8], 0
inc esi
cmp esi, 2
jl 0x451860
jmp 0x451935
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0xe8], 0
je 0x4519e5
push dword [ebp - 0xe0]
call eax
cmp dword [ebp - 0xe4], 0
je 0x4519dd
push dword [ebp - 0xdc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xf4]
cmp eax, dword [ebp - 0xec]
jl 0x45198a
jg 0x451986
mov eax, dword [ebp - 0xf8]
cmp eax, dword [ebp - 0xf0]
jb 0x45198a
push 1
jmp 0x45198c
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.004512a0
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 0x4519f3
jmp 0x451a00
mov edi, dword [ebp - 0xdc]
jmp 0x4519f3
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 0x451a1e
inc eax
lea ecx, [ebp - 0x150]
push eax
push dword [ebp - 0x150]
call fcn.00432db0
mov edx, 0x53b638
mov ecx, 0x4d7638
mov esi, 0x64
nop dword [eax]
cmp ecx, ebx
jne 0x451a38
xor eax, eax
xchg dword [edx], eax
add ecx, 0x1000
add edx, 4
sub esi, 1
jne 0x451a30
mov ecx, dword [ebp - 0x124]
cmp ecx, 8
jb 0x451a64
inc ecx
push ecx
push dword [ebp - 0x138]
lea ecx, [ebp - 0x138]
call fcn.00432db0
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.0047aa96
mov esp, ebp
pop ebp
ret