Function at 0x4a1f00
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x788
push ebx
push esi
mov ebx, ecx
lea eax, [ebp - 0x268]
push edi
push 0x104
lea esi, [ebx + 0xc]
push esi
push eax
mov dword [ebp - 0x20], esi
call fcn.0054ba20
push 0xffffffffffffffff
push 0x104
lea eax, [ebp - 0x268]
push str..current.txt
push eax
call fcn.0054b840
push esi
call fcn.0054adf0
mov dword [ebp - 4], eax
lea eax, [ebp - 0x268]
push eax
call fcn.0054adf0
push esi
push str._s..txt
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x164]
push 0x104
push eax
call fcn.0054b560
add esp, 0x30
lea ecx, [ebp - 0x164]
mov eax, esp
xor edi, edi
xor esi, esi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
mov dword [eax], ecx
lea ecx, [ebp - 0x788]
mov dword [ebp - 0xc], esi
call fcn.0049b200
lea eax, [ebp - 0x164]
push eax
call fcn.0054a990
add esp, 4
mov dword [ebp - 8], esi
lea eax, [ebp - 0x164]
lea ecx, [ebp - 8]
push eax
call fcn.004a0550
lea ecx, [ebp - 0x788]
call fcn.0049d610
test al, al
je 0x4a20f3
push dword [ebp - 4]
lea eax, [ebp - 0x164]
push str._s.__u.txt
push 0x104
push eax
call fcn.0054b560
add esp, 0x10
lea ecx, [ebp - 0x788]
call fcn.0049bca0
test al, al
je 0x4a20f3
lea esi, [edi + 3]
jmp 0x4a2000
lea ecx, [ebp - 0x788]
call fcn.0049c9a0
push closesocket
push dword [ebp - 0x1c]
push eax
call fcn.0054baa0
add esp, 0xc
test eax, eax
jne 0x4a2173
mov eax, dword [0x7dfed0]
push eax
mov dword [ebp - 4], eax
lea eax, [ebx + 0xc]
push eax
push str._s._10u.txt
lea eax, [ebp - 0x36c]
push 0x104
push eax
call fcn.0054b560
add esp, 0x14
lea eax, [ebp - 4]
lea ecx, [ebp - 0x18]
push eax
push 0
call fcn.004a5560
lea eax, [ebp - 0x36c]
push eax
lea eax, [ebp - 0x268]
push eax
call fcn.0056190c
add esp, 8
test eax, eax
jne 0x4a22de
lea eax, [ebp - 0x36c]
push eax
lea ecx, [ebx + 0x118]
call fcn.004a0550
push 4
call fcn.005519b3
mov esi, eax
add esp, 4
test esi, esi
je 0x4a20b4
mov dword [esi], edi
mov edx, 0x6e7a86
mov ecx, dword [ebx + 0x118]
test ecx, ecx
cmovne edx, ecx
mov ecx, esi
push edx
call fcn.004a0550
jmp 0x4a20b6
xor esi, esi
push 0
push 0
push esi
push 0x4a6090
call fcn.00541250
add esp, 0x10
test eax, eax
je 0x4a20d5
push eax
call fcn.00541e20
add esp, 4
mov esi, 3
lea ecx, [ebp - 0x788]
call fcn.0049bca0
test al, al
jne 0x4a2000
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 0x18]
cmp byte [ebx + 1], 0
jne 0x4a22e5
lea ecx, [esi*4]
mov eax, ecx
push 0x4a6160
sar eax, 2
push eax
lea eax, [ecx + edi]
push eax
push edi
call fcn.004a1690
add esp, 0x10
cmp esi, 0x63
jle 0x4a2317
push dword [edi]
lea eax, [ebp - 0x164]
push dword [ebp - 0x20]
push str._s._10u.txt
push 0x104
push eax
call fcn.0054b560
lea eax, [ebp - 0x164]
push eax
call fcn.005619c5
dec esi
add esp, 0x18
test esi, esi
jle 0x4a2169
lea eax, [esi*4]
push eax
lea eax, [edi + 4]
push eax
push edi
call fcn.00553b80
add esp, 0xc
cmp esi, 0x63
jg 0x4a2125
jmp 0x4a2317
lea eax, [ebp - 4]
mov dword [ebp - 4], edi
push eax
lea eax, [ebp - 0x164]
push eax
lea ecx, [ebp - 0x788]
call fcn.0049c9a0
push eax
call fcn.00467fd0
add esp, 0xc
cmp eax, 1
jne 0x4a22a5
cmp byte [ebx + 1], 0
je 0x4a2292
cmp dword [ebx + 4], edi
je 0x4a2292
push dword [0x7dfed0]
call fcn.004acfc0
mov ecx, dword [ebx + 4]
add esp, 4
add ecx, dword [ebp - 4]
cmp ecx, eax
jae 0x4a20da
lea ecx, [ebp - 0x788]
call fcn.0049c9a0
and dword [ebp - 0x4c], 0xff0fffff
xor ecx, ecx
push eax
push str.Persistent_logfile__s_is_past_the_keep_until_date___cleaning_up_n
lea eax, [ebp - 0x50]
mov byte [ebp - 0x49], 0
and dword [ebp - 0x4c], 0xfff00000
push eax
push 1
push 2
push 1
push 6
push ecx
push ecx
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], 3
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], ecx
call fcn.00451380
add esp, 0x24
lea ecx, [ebp - 0x788]
call fcn.0049c9a0
mov ecx, dword [ebp - 8]
mov edx, 0x6e7a86
test ecx, ecx
push eax
cmovne edx, ecx
lea eax, [ebp - 0x60]
push edx
push 0x6ed848
push eax
call fcn.0049f960
mov ecx, eax
add esp, 0x10
cmp byte [ecx + 0xf], 0
jge 0x4a225f
mov ecx, dword [ecx]
test ecx, ecx
mov eax, 0x6e7a86
cmovne eax, ecx
push eax
call fcn.0049e720
add esp, 4
test byte [ebp - 0x51], 0x80
je 0x4a20da
call fcn.0053aa60
push 0
push dword [ebp - 0x60]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
jmp 0x4a20da
lea eax, [ebp - 4]
push eax
push 0
lea ecx, [ebp - 0x18]
call fcn.004a5560
jmp 0x4a20da
cmp byte [0x7deba1], 0
jne 0x4a20da
push str.Failed_to_find_time_in_logfile_name
push 0xcb9
push str.C:_buildworker_steam_rel_client_win32_build_srccommonlogger.cpp
mov byte [0x7deba1], 1
call fcn.0053aea0
add esp, 0xc
test al, al
jne 0x4a20da
int3
mov edi, dword [ebp - 0x18]
xor bl, bl
jmp 0x4a2319
cmp dword [ebx + 4], 0
ja 0x4a2317
cmp byte [0x7deba2], 0
jne 0x4a2317
push str.Persistent_Logfiles_created_which_have_no_cleanup_limit_specified_
push 0xcd3
push str.C:_buildworker_steam_rel_client_win32_build_srccommonlogger.cpp
mov byte [0x7deba2], 1
call fcn.0053aea0
add esp, 0xc
test al, al
jne 0x4a2317
int3
mov bl, 1
call fcn.0053aa60
push 0
push dword [ebp - 8]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
lea ecx, [ebp - 0x788]
call fcn.0049b4e0
mov esi, dword [ebp - 0x10]
test esi, esi
js 0x4a2368
test edi, edi
je 0x4a2351
call fcn.0053aa60
push 0
push edi
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
xor edi, edi
test esi, esi
js 0x4a2368
test edi, edi
je 0x4a2368
call fcn.0053aa60
push 0
push edi
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret