Function at 0x4a0310
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x784
push ebx
push esi
push edi
mov edi, ecx
lea eax, [ebp - 0x264]
push 0x104
lea ebx, [edi + 0xc]
push ebx
push eax
call fcn.00532810
push 0xffffffffffffffff
push 0x104
lea eax, [ebp - 0x264]
push str..current.txt
push eax
call fcn.00532630
push ebx
call fcn.00531c90
mov esi, eax
lea eax, [ebp - 0x264]
push eax
call fcn.00531c90
push ebx
push str._s..txt
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x160]
push 0x104
push eax
call fcn.005323e0
add esp, 0x34
lea ecx, [ebp - 0x14]
push 0
push 0
push 4
call fcn.00498ef0
push ecx
mov eax, esp
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x160]
mov dword [eax], ecx
lea ecx, [ebp - 0x784]
call fcn.00499890
lea eax, [ebp - 0x160]
push eax
call fcn.005318f0
add esp, 4
mov dword [ebp - 0x1c], 0
lea eax, [ebp - 0x160]
lea ecx, [ebp - 0x1c]
push eax
call fcn.0049ec40
lea ecx, [ebp - 0x784]
call fcn.0049bb90
test al, al
je 0x4a0575
push esi
push str._s.__u.txt
lea eax, [ebp - 0x160]
push 0x104
push eax
call fcn.005323e0
add esp, 0x10
lea ecx, [ebp - 0x784]
call fcn.0049a480
test al, al
je 0x4a0575
mov esi, 3
lea ecx, [ebp - 0x784]
call fcn.0049b180
push closesocket
push dword [ebp - 0x20]
push eax
call fcn.00532890
add esp, 0xc
test eax, eax
jne 0x4a060e
mov esi, dword [0x7bad78]
lea eax, [ebp - 0x368]
push esi
push ebx
push str._s._10u.txt
push 0x104
push eax
call fcn.005323e0
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x24]
add esp, 0x14
cmp eax, ecx
jb 0x4a0489
mov eax, dword [ebp - 4]
lea eax, [ecx + eax*4]
lea ecx, [ebp - 0x24]
cmp ecx, eax
jae 0x4a0489
push str._src___m_Memory.Base______src____m_Memory.Base____m_Size___
push 0x478
push str.c:_buildslave_steam_rel_client_hotfix_win32_build_srcpublic_tier1utlvector.h
call fcn.00522050
add esp, 0xc
test al, al
jne 0x4a0489
int3
lea ecx, [ebp - 0x14]
call fcn.0046fbd0
mov edx, dword [ebp - 4]
lea ecx, [edx + 1]
cmp ecx, eax
jle 0x4a04b5
lea ecx, [ebp - 0x14]
call fcn.0046fbd0
mov ecx, dword [ebp - 4]
sub ecx, eax
inc ecx
push ecx
lea ecx, [ebp - 0x14]
call fcn.00499170
mov edx, dword [ebp - 4]
inc edx
mov dword [ebp - 4], edx
lea eax, [edx - 1]
test eax, eax
jle 0x4a04d4
shl eax, 2
push eax
mov eax, dword [ebp - 0x10]
push eax
add eax, 4
push eax
call fcn.0053a4d0
add esp, 0xc
mov eax, dword [ebp - 0x10]
mov dword [eax], esi
lea eax, [ebp - 0x368]
push eax
lea eax, [ebp - 0x264]
push eax
call fcn.005477a4
add esp, 8
test eax, eax
jne 0x4a0785
lea eax, [ebp - 0x368]
push eax
lea ecx, [edi + 0x118]
call fcn.0049ec40
push 4
call fcn.0053837d
mov esi, eax
add esp, 4
test esi, esi
je 0x4a0539
mov dword [esi], 0
mov edx, 0x6cca60
mov ecx, dword [edi + 0x118]
test ecx, ecx
cmovne edx, ecx
mov ecx, esi
push edx
call fcn.0049ec40
jmp 0x4a053b
xor esi, esi
push 0
push 0
push esi
push 0x4a4200
call fcn.00527760
add esp, 0x10
test eax, eax
je 0x4a055a
push eax
call fcn.005280f0
add esp, 4
mov esi, 3
lea ebx, [edi + 0xc]
lea ecx, [ebp - 0x784]
call fcn.0049a480
test al, al
jne 0x4a0411
cmp byte [edi + 1], 0
jne 0x4a0789
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
push 0x4a42d0
lea ecx, [edx + eax*4]
mov eax, ecx
sub eax, edx
sar eax, 2
push eax
push ecx
push edx
call fcn.0049fc50
add esp, 0x10
cmp dword [ebp - 4], 0x63
jle 0x4a07bb
lea esp, [esp]
mov eax, dword [ebp - 0x10]
push dword [eax]
lea eax, [ebp - 0x160]
push ebx
push str._s._10u.txt
push 0x104
push eax
call fcn.005323e0
lea eax, [ebp - 0x160]
push eax
call fcn.0054785d
mov eax, dword [ebp - 4]
add esp, 0x18
lea ecx, [eax - 1]
test ecx, ecx
jle 0x4a0600
lea eax, [ecx*4]
mov ecx, dword [ebp - 0x10]
push eax
lea eax, [ecx + 4]
push eax
push ecx
call fcn.0053a4d0
mov eax, dword [ebp - 4]
add esp, 0xc
dec eax
mov dword [ebp - 4], eax
cmp eax, 0x63
jg 0x4a05b0
jmp 0x4a07bb
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
lea eax, [ebp - 0x160]
push eax
lea ecx, [ebp - 0x784]
call fcn.0049b180
push eax
call fcn.004665c0
add esp, 0xc
cmp eax, 1
jne 0x4a074c
cmp byte [edi + 1], 0
je 0x4a073b
cmp dword [edi + 4], 0
je 0x4a073b
push dword [0x7bad78]
call fcn.004aa9b0
mov ecx, dword [edi + 4]
add esp, 4
add ecx, dword [ebp - 0x18]
cmp ecx, eax
jae 0x4a0562
lea ecx, [ebp - 0x784]
call fcn.0049b180
and dword [ebp - 0x48], 0xff0fffff
xor ecx, ecx
push eax
push str.Persistent_logfile__s_is_past_the_keep_until_date___cleaning_up_n
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x45], 0
and dword [ebp - 0x48], 0xfff00000
push eax
lea eax, [ebp - 0x44]
mov dword [ebp - 0x4c], 0
push eax
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x44], ecx
push eax
push 1
push 2
push 1
push 6
push ecx
push ecx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], 3
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], ecx
call fcn.00450b00
add esp, 0x2c
lea ecx, [ebp - 0x784]
call fcn.0049b180
mov ecx, dword [ebp - 0x1c]
mov edx, 0x6cca60
test ecx, ecx
push eax
cmovne edx, ecx
lea eax, [ebp - 0x5c]
push edx
push 0x6d2668
push eax
call fcn.0049e1d0
mov ecx, eax
add esp, 0x10
cmp byte [ecx + 0xf], 0
jge 0x4a0708
mov ecx, dword [ecx]
test ecx, ecx
mov eax, 0x6cca60
cmovne eax, ecx
push eax
call fcn.0049d0b0
add esp, 4
test byte [ebp - 0x4d], 0x80
je 0x4a0562
call fcn.00521c10
push 0
push dword [ebp - 0x5c]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
jmp 0x4a0562
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x14]
call fcn.004a0270
jmp 0x4a0562
cmp byte [0x7b9a49], 0
jne 0x4a0562
push str.Failed_to_find_time_in_logfile_name
push 0xcfc
push str.c:_buildslave_steam_rel_client_hotfix_win32_build_srccommonlogger.cpp
mov byte [0x7b9a49], 1
call fcn.00522050
add esp, 0xc
test al, al
jne 0x4a0562
int3
xor bl, bl
jmp 0x4a07bd
cmp dword [edi + 4], 0
ja 0x4a07bb
cmp byte [0x7b9a4a], 0
jne 0x4a07bb
push str.Persistent_Logfiles_created_which_have_no_cleanup_limit_specified_
push 0xd16
push str.c:_buildslave_steam_rel_client_hotfix_win32_build_srccommonlogger.cpp
mov byte [0x7b9a4a], 1
call fcn.00522050
add esp, 0xc
test al, al
jne 0x4a07bb
int3
mov bl, 1
call fcn.00521c10
push 0
push dword [ebp - 0x1c]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
lea ecx, [ebp - 0x784]
call fcn.00499d00
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0
call fcn.00499020
lea ecx, [ebp - 0x14]
call fcn.00499020
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret