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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10087186
mov eax, dword fs:[0]
push eax
sub esp, 0xb4
mov eax, dword [0x100ca4b0]
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]
lea ebx, [edi + 0x60]
mov dword [ebp - 0xbc], ebx
test eax, eax
je 0x100206c9
cmp dword [edi + 0xfc], 0
je 0x1002069f
mov ecx, dword [edi + 0xfc]
mov dword [ebp - 0xc0], eax
test ecx, ecx
je 0x10020856
mov eax, dword [ecx]
lea edx, [ebp - 0xc0]
push edx
lea esi, [edi + 0x6c]
push esi
call dword [eax + 8]
jmp 0x100206a2
lea esi, [edi + 0x6c]
push dword [edi + 0x68]
call fcn.10062757
add esp, 4
mov dword [edi + 0x68], 0
cmp dword [edi + 0x124], 0
je 0x100206c9
mov ecx, dword [edi + 0x124]
push esi
mov eax, dword [ecx]
call dword [eax + 8]
mov esi, dword [edi + 0x58]
test esi, esi
je 0x10020827
lea ebx, [esi - 1]
lea eax, [edi + 0x3c]
push ebx
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.10019fb0
add esp, 0xc
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
mov dword [ebp - 4], 0
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x100207dc
push esi
lea eax, [edi + 0x3c]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.10019fb0
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.100630da
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
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.10063144
add esp, 0x18
test eax, eax
je 0x10020792
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.100630da
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
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.10063144
add esp, 0xc
test eax, eax
jne 0x1002086f
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 0
cmp ecx, 0x10
jb 0x100207ca
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100207c0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100208f3
push ecx
push edx
call fcn.1005cc67
add esp, 8
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
cmp ecx, 0x10
jb 0x10020817
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1002080d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100208f3
push ecx
push edx
call fcn.1005cc67
add esp, 8
mov esi, ebx
test esi, esi
jne 0x100206d4
mov ebx, dword [ebp - 0xbc]
cmp dword [ebx + 0x1c], 0
je 0x1002085b
push 1
lea eax, [ebx + 0xc]
mov ecx, ebx
push eax
call fcn.1001f1f0
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.1005cf9d
mov esp, ebp
pop ebp
ret
call fcn.10044f0b
sub esp, 0x18
mov ecx, esp
push str.Failed_re_opening_file___was_not_opened_before
call fcn.100128e0
call fcn.100216f0
push 1
lea ecx, [edi + 0x60]
call fcn.10020270
mov dword [edi + 0x5c], 0
call fcn.1006240d
mov edi, dword [eax]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.1001b640
mov esi, eax
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.1001b640
push eax
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 3
push str.rotating_file_sink:_failed_renaming
push eax
call fcn.10006cd0
push str._to
push eax
lea eax, [ebp - 0xa0]
mov byte [ebp - 4], 4
push eax
call fcn.10006c30
push esi
push eax
lea eax, [ebp - 0xb8]
mov byte [ebp - 4], 5
push eax
call fcn.10006c10
add esp, 0x34
push edi
push eax
mov byte [ebp - 4], 6
call fcn.100216c0
call fcn.1006231f
int3