Function at 0x1000ad30
Capabilities:
Get file size

Disassembly:
push 0xffffffffffffffff
push 0x10270ffc
mov eax, dword fs:[0]
push eax
sub esp, 0x134
mov eax, dword [0x1037c990]
xor eax, esp
mov dword [esp + 0x130], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1037c990]
xor eax, esp
push eax
lea eax, [esp + 0x148]
mov dword fs:[0], eax
mov edi, ecx
mov ecx, dword [edi + 4]
lea esi, [edi + 4]
lea eax, [esp + 0x14]
push eax
xor ebp, ebp
push ecx
mov dword [esp + 0x40], edi
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x44], esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x1000ad9c
call fcn.1000a520
jmp 0x1000ada4
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ebx, dword [edi + 0x28]
xor ecx, ecx
cmp edx, ecx
jl 0x1000b258
jg 0x1000adbb
cmp eax, ebx
jbe 0x1000b258
mov edx, dword [esi]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call ebx
mov dword [esi], 0xffffffff
mov eax, dword [edi + 0x2c]
push eax
lea ebp, [edi + 8]
push esi
mov eax, ebp
call fcn.1000f200
test al, al
jne 0x1000ae2c
push 0x15
xor esi, esi
push str.Cant_reopen_log_file
lea ecx, [esp + 0x24]
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], esi
mov byte [esp + 0x28], 0
call fcn.10036910
mov dword [esp + 0x150], esi
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0xe8]
call fcn.100339a0
push 0x1031cb40
lea edx, [esp + 0xe8]
push edx
call fcn.1023215b
mov ecx, dword [esi]
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x1000ae53
call fcn.1000a520
mov dword [esp + 0x5c], eax
jmp 0x1000ae5f
mov edx, dword [esp + 0x14]
mov dword [esp + 0x5c], edx
mov edx, dword [esp + 0x18]
mov eax, dword [edi + 0x28]
xor ecx, ecx
cmp edx, ecx
jl 0x1000b258
jg 0x1000ae78
cmp dword [esp + 0x5c], eax
jbe 0x1000b258
mov eax, dword [esi]
push eax
call ebx
push ebp
lea ecx, [esp + 0xe8]
push ecx
mov dword [esi], 0xffffffff
call fcn.1000d370
mov dword [esp + 0x150], 1
add edi, 0x24
mov ecx, edi
lea edx, [esp + 0xa0]
call fcn.1000a820
mov byte [esp + 0x150], 2
push eax
lea edx, [esp + 0xc0]
push edx
mov ecx, ebp
call fcn.1000a8a0
add esp, 8
mov byte [esp + 0x150], 3
push eax
lea ecx, [esp + 0x12c]
call fcn.1000ef40
mov byte [esp + 0x150], 5
lea ecx, [esp + 0xbc]
call fcn.100379d0
mov byte [esp + 0x150], 6
lea ecx, [esp + 0xa0]
call fcn.100379d0
lea esi, [esp + 0x128]
call fcn.1000a750
mov esi, dword [edi]
dec esi
mov dword [esp + 0x14], esi
mov ebx, 8
cmp esi, 1
jb 0x1000b0db
jmp 0x1000af30
lea ecx, [esp + 0x14]
lea edx, [esp + 0x68]
call fcn.1000a820
mov byte [esp + 0x150], 7
push eax
lea eax, [esp + 0x88]
push eax
mov ecx, ebp
call fcn.1000a8a0
add esp, 8
mov byte [esp + 0x150], bl
push eax
lea ecx, [esp + 0xa4]
call fcn.1000ef40
mov byte [esp + 0x150], 0xa
cmp dword [esp + 0x9c], ebx
jb 0x1000af8d
mov ecx, dword [esp + 0x88]
push ecx
call fcn.101d2eac
add esp, 4
mov edi, 7
xor edx, edx
mov dword [esp + 0x9c], edi
mov dword [esp + 0x98], 0
mov word [esp + 0x88], dx
mov byte [esp + 0x150], 0xb
cmp dword [esp + 0x80], ebx
jb 0x1000afcc
mov eax, dword [esp + 0x6c]
push eax
call fcn.101d2eac
add esp, 4
xor ecx, ecx
mov word [esp + 0x6c], cx
lea ecx, [esp + 0xa0]
mov dword [esp + 0x80], edi
mov dword [esp + 0x7c], 0
call fcn.1000d3f0
test al, al
je 0x1000b0b9
lea edx, [esi + 1]
mov dword [esp + 0x14], edx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x1c]
call fcn.1000a820
mov byte [esp + 0x150], 0xc
push eax
lea eax, [esp + 0x44]
push eax
mov ecx, ebp
call fcn.1000a8a0
add esp, 8
mov byte [esp + 0x150], 0xd
push eax
lea ecx, [esp + 0xc0]
call fcn.1000ef40
mov byte [esp + 0x150], 0xf
cmp dword [esp + 0x58], ebx
jb 0x1000b052
mov ecx, dword [esp + 0x44]
push ecx
call fcn.101d2eac
add esp, 4
xor edx, edx
mov dword [esp + 0x58], edi
mov dword [esp + 0x54], 0
mov word [esp + 0x44], dx
mov byte [esp + 0x150], 0x10
cmp dword [esp + 0x34], ebx
jb 0x1000b080
mov eax, dword [esp + 0x20]
push eax
call fcn.101d2eac
add esp, 4
lea edx, [esp + 0xa0]
xor ecx, ecx
mov dword [esp + 0x34], edi
push edx
lea edi, [esp + 0xc0]
mov dword [esp + 0x34], 0
mov word [esp + 0x24], cx
call fcn.1000abe0
add esp, 4
mov byte [esp + 0x150], 0xb
mov ecx, edi
call fcn.1000f190
mov byte [esp + 0x150], 6
lea ecx, [esp + 0xa0]
call fcn.1000f190
dec esi
mov dword [esp + 0x14], esi
cmp esi, 1
jae 0x1000af30
lea ecx, [esp + 0x14]
lea edx, [esp + 0x40]
mov dword [esp + 0x14], 1
call fcn.1000aa70
mov byte [esp + 0x150], 0x11
push eax
lea eax, [esp + 0x20]
push eax
mov ecx, ebp
call fcn.1000a8a0
add esp, 8
mov byte [esp + 0x150], 0x12
push eax
lea ecx, [esp + 0x110]
call fcn.1000ef40
mov byte [esp + 0x150], 0x14
cmp dword [esp + 0x34], ebx
jb 0x1000b138
mov ecx, dword [esp + 0x20]
push ecx
call fcn.101d2eac
add esp, 4
mov edi, 7
xor esi, esi
xor edx, edx
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], esi
mov word [esp + 0x20], dx
mov byte [esp + 0x150], 0x15
cmp dword [esp + 0x58], ebx
jb 0x1000b169
mov eax, dword [esp + 0x44]
push eax
call fcn.101d2eac
add esp, 4
lea edx, [esp + 0xe4]
xor ecx, ecx
mov dword [esp + 0x58], edi
push edx
lea edi, [esp + 0x110]
mov dword [esp + 0x58], esi
mov word [esp + 0x48], cx
call fcn.1000abe0
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax + 0x2c]
add esp, 4
mov eax, 0x8000080
test cl, 1
jne 0x1000b1a5
mov eax, 0x88000080
cmp dword [ebp + 0x18], ebx
jb 0x1000b1af
mov ebp, dword [ebp + 4]
jmp 0x1000b1b2
add ebp, 4
push esi
push eax
push 4
push esi
push 7
push 4
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, dword [esp + 0x3c]
mov dword [ecx], eax
cmp eax, 0xffffffff
jne 0x1000b219
push 0x14
push str.Cannot_open_log_file
lea ecx, [esp + 0x24]
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], esi
mov byte [esp + 0x28], 0
call fcn.10036910
mov byte [esp + 0x150], 0x16
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0xc0]
call fcn.100339a0
push 0x1031cb40
lea eax, [esp + 0xc0]
push eax
call fcn.1023215b
mov byte [esp + 0x150], 6
lea ecx, [esp + 0x10c]
call fcn.1000f190
mov byte [esp + 0x150], 1
lea ecx, [esp + 0x128]
call fcn.1000f190
mov dword [esp + 0x150], 0xffffffff
lea ecx, [esp + 0xe4]
call fcn.1000f190
mov ecx, dword [esp + 0x148]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.1022e78c
add esp, 0x140
ret