Function at 0x41b150
Capabilities:
Check if file exists
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45e391
mov eax, dword fs:[0]
push eax
sub esp, 0xb4
mov eax, dword [0x47b06c]
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
mov edi, ecx
mov eax, dword [edi + 0x68]
test eax, eax
je 0x41b1e1
cmp dword [edi + 0xfc], 0
je 0x41b1b9
mov ecx, dword [edi + 0xfc]
mov dword [ebp - 0xbc], eax
test ecx, ecx
je 0x41b36d
mov eax, dword [ecx]
lea edx, [ebp - 0xbc]
push edx
lea esi, [edi + 0x6c]
push esi
call dword [eax + 8]
mov eax, dword [edi + 0x68]
jmp 0x41b1bc
lea esi, [edi + 0x6c]
push eax
call fcn.0044233c
add esp, 4
mov dword [edi + 0x68], 0
cmp dword [edi + 0x124], 0
je 0x41b1e1
mov ecx, dword [edi + 0x124]
push esi
mov eax, dword [ecx]
call dword [eax + 8]
mov esi, dword [edi + 0x58]
test esi, esi
je 0x41b339
lea eax, [edi + 0x3c]
lea ebx, [esi - 1]
mov edx, eax
push ebx
lea ecx, [ebp - 0x40]
call fcn.0041e370
add esp, 4
mov dword [ebp - 4], 0
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 0x10
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x41b2fb
push esi
lea edx, [edi + 0x3c]
lea ecx, [ebp - 0x28]
call fcn.0041e370
add esp, 4
mov byte [ebp - 4], 1
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.004436a2
add esp, 4
lea ecx, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x40]
cmovae ecx, dword [ebp - 0x28]
cmp dword [ebp - 0x2c], 0x10
push ecx
cmovae eax, dword [ebp - 0x40]
push eax
call fcn.004456c3
add esp, 8
test eax, eax
je 0x41b2b1
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.004436a2
add esp, 4
lea ecx, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x40]
cmovae ecx, dword [ebp - 0x28]
cmp dword [ebp - 0x2c], 0x10
push ecx
cmovae eax, dword [ebp - 0x40]
push eax
call fcn.004456c3
add esp, 8
test eax, eax
jne 0x41b377
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x41b2e9
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41b2df
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41b372
push edx
push ecx
call fcn.0042736a
add esp, 8
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x2c]
cmp edx, 0x10
jb 0x41b332
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41b328
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41b372
push edx
push ecx
call fcn.0042736a
add esp, 8
mov esi, ebx
jmp 0x41b1e4
cmp dword [edi + 0x7c], 0
lea ecx, [edi + 0x60]
je 0x41b3fd
push 1
lea eax, [ecx + 0xc]
push eax
call fcn.00408e90
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.00427329
mov esp, ebp
pop ebp
ret
call fcn.00425949
call fcn.004421bc
push ecx
lea ecx, [edi + 0x60]
call fcn.00409170
lea edx, [ebp - 0x28]
mov dword [edi + 0x5c], 0
lea ecx, [ebp - 0x58]
call fcn.004054a0
mov esi, eax
lea edx, [ebp - 0x40]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x70]
call fcn.004054a0
push eax
mov edx, str.rotating_file_sink:_failed_renaming
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x88]
call fcn.00412370
add esp, 4
push str._to
mov edx, eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xa0]
call fcn.004014a0
add esp, 4
push esi
mov edx, eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0xb8]
call fcn.00401be0
add esp, 4
mov esi, eax
mov byte [ebp - 4], 6
call fcn.00445b15
mov ecx, esi
mov edx, dword [eax]
call fcn.00405210
sub esp, 0x18
mov ecx, esp
push str.Failed_re_opening_file___was_not_opened_before
call fcn.004011f0
call fcn.004052b0
int3