Function at 0x1002ff50
Capabilities:
Get file size
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x100bcadc
mov eax, dword fs:[0]
push eax
sub esp, 0x128
mov eax, dword [0x100f6f50]
xor eax, esp
mov dword [esp + 0x120], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100f6f50]
xor eax, esp
push eax
lea eax, [esp + 0x13c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x14c]
mov ecx, dword [ebp + 4]
lea eax, [esp + 0x14]
push eax
xor edi, edi
push ecx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x1002ffb6
call fcn.1002f7c0
jmp 0x1002ffbe
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov esi, dword [ebp + 0x28]
xor ecx, ecx
cmp edx, ecx
jl 0x1003049c
jg 0x1002ffd5
cmp eax, esi
jbe 0x1003049c
mov edx, dword [ebp + 4]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call edi
mov dword [ebp + 4], 0xffffffff
mov eax, dword [ebp + 0x2c]
lea ebx, [ebp + 8]
mov ecx, 0x8000080
test al, 1
jne 0x1002fffc
mov ecx, 0x88000080
cmp dword [ebx + 0x18], 8
jb 0x10030007
mov eax, dword [ebx + 4]
jmp 0x1003000a
lea eax, [ebx + 4]
xor esi, esi
push esi
push ecx
push 4
push esi
push 7
push 4
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp + 4], eax
cmp eax, 0xffffffff
jne 0x1003006f
push 0x15
push str.Cant_reopen_log_file
lea ecx, [esp + 0x28]
mov dword [esp + 0x40], 0xf
mov dword [esp + 0x3c], esi
mov byte [esp + 0x2c], 0
call fcn.10058f70
mov dword [esp + 0x144], esi
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0xd8]
call fcn.10056080
push 0x100e3b10
lea ecx, [esp + 0xd8]
push ecx
call fcn.100909fc
lea edx, [esp + 0x14]
push edx
push eax
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x1003008e
call fcn.1002f7c0
jmp 0x10030096
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov esi, dword [ebp + 0x28]
xor ecx, ecx
cmp edx, ecx
jl 0x1003049c
jg 0x100300ad
cmp eax, esi
jbe 0x1003049c
mov ecx, dword [ebp + 4]
push ecx
call edi
push ebx
lea edx, [esp + 0xd8]
push edx
mov dword [ebp + 4], 0xffffffff
call fcn.10030940
mov dword [esp + 0x144], 1
lea edi, [ebp + 0x24]
mov ecx, edi
lea edx, [esp + 0x90]
call fcn.1002f0e0
mov byte [esp + 0x144], 2
push eax
lea eax, [esp + 0xb0]
push eax
mov ecx, ebx
call fcn.1002fac0
add esp, 8
mov byte [esp + 0x144], 3
push eax
lea ecx, [esp + 0x11c]
call fcn.10032460
mov byte [esp + 0x144], 5
lea ecx, [esp + 0xac]
call fcn.10059fd0
mov byte [esp + 0x144], 6
lea ecx, [esp + 0x90]
call fcn.10059fd0
lea esi, [esp + 0x118]
call fcn.1002f9f0
mov esi, dword [edi]
dec esi
mov dword [esp + 0x14], esi
cmp esi, 1
jb 0x10030314
jmp 0x10030160
lea ecx, [esp + 0x14]
lea edx, [esp + 0x58]
call fcn.1002f0e0
mov byte [esp + 0x144], 7
push eax
lea ecx, [esp + 0x78]
push ecx
mov ecx, ebx
call fcn.1002fac0
add esp, 8
mov byte [esp + 0x144], 8
push eax
lea ecx, [esp + 0x94]
call fcn.10032460
mov byte [esp + 0x144], 0xa
mov edi, 8
cmp dword [esp + 0x8c], edi
jb 0x100301bd
mov edx, dword [esp + 0x78]
push edx
call fcn.10063187
add esp, 4
xor eax, eax
mov dword [esp + 0x8c], 7
mov dword [esp + 0x88], 0
mov word [esp + 0x78], ax
mov byte [esp + 0x144], 0xb
cmp dword [esp + 0x70], edi
jb 0x100301f5
mov ecx, dword [esp + 0x5c]
push ecx
call fcn.10063187
add esp, 4
xor edx, edx
lea ecx, [esp + 0x90]
mov dword [esp + 0x70], 7
mov dword [esp + 0x6c], 0
mov word [esp + 0x5c], dx
call fcn.100309c0
test al, al
je 0x100302f0
lea eax, [esi + 1]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x20]
mov dword [esp + 0x14], eax
call fcn.1002f0e0
mov byte [esp + 0x144], 0xc
push eax
lea ecx, [esp + 0x40]
push ecx
mov ecx, ebx
call fcn.1002fac0
add esp, 8
mov byte [esp + 0x144], 0xd
push eax
lea ecx, [esp + 0xb0]
call fcn.10032460
mov byte [esp + 0x144], 0xf
cmp dword [esp + 0x54], edi
jb 0x1003027c
mov edx, dword [esp + 0x40]
push edx
call fcn.10063187
add esp, 4
xor eax, eax
mov dword [esp + 0x54], 7
mov dword [esp + 0x50], 0
mov word [esp + 0x40], ax
mov byte [esp + 0x144], 0x10
cmp dword [esp + 0x38], edi
jb 0x100302ae
mov ecx, dword [esp + 0x24]
push ecx
call fcn.10063187
add esp, 4
lea eax, [esp + 0x90]
xor edx, edx
push eax
lea edi, [esp + 0xb0]
mov dword [esp + 0x3c], 7
mov dword [esp + 0x38], 0
mov word [esp + 0x28], dx
call fcn.1002fe00
add esp, 4
mov byte [esp + 0x144], 0xb
mov ecx, edi
call fcn.100326d0
mov edi, 8
mov byte [esp + 0x144], 6
lea ecx, [esp + 0x90]
call fcn.100326d0
dec esi
mov dword [esp + 0x14], esi
cmp esi, 1
jae 0x10030160
jmp 0x10030319
mov edi, 8
lea ecx, [esp + 0x14]
lea edx, [esp + 0x3c]
mov dword [esp + 0x14], 1
call fcn.1002fc90
mov byte [esp + 0x144], 0x11
push eax
lea ecx, [esp + 0x24]
push ecx
mov ecx, ebx
call fcn.1002fac0
add esp, 8
mov byte [esp + 0x144], 0x12
push eax
lea ecx, [esp + 0x100]
call fcn.10032460
mov byte [esp + 0x144], 0x14
cmp dword [esp + 0x38], edi
jb 0x10030376
mov edx, dword [esp + 0x24]
push edx
call fcn.10063187
add esp, 4
mov esi, 7
xor eax, eax
mov dword [esp + 0x38], esi
mov dword [esp + 0x34], 0
mov word [esp + 0x24], ax
mov byte [esp + 0x144], 0x15
cmp dword [esp + 0x54], edi
jb 0x100303a9
mov ecx, dword [esp + 0x40]
push ecx
call fcn.10063187
add esp, 4
lea eax, [esp + 0xd4]
xor edx, edx
push eax
lea edi, [esp + 0x100]
mov dword [esp + 0x58], esi
mov dword [esp + 0x54], 0
mov word [esp + 0x44], dx
call fcn.1002fe00
mov ecx, dword [ebp + 0x2c]
add esp, 4
mov eax, 0x8000080
test cl, 1
jne 0x100303e5
mov eax, 0x88000080
cmp dword [ebx + 0x18], 8
jb 0x100303f0
mov ebx, dword [ebx + 4]
jmp 0x100303f3
add ebx, 4
push 0
push eax
push 4
push 0
push 7
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp + 4], eax
cmp eax, 0xffffffff
jne 0x1003045d
push 0x14
push str.Cannot_open_log_file
lea ecx, [esp + 0x28]
mov dword [esp + 0x40], 0xf
mov dword [esp + 0x3c], 0
mov byte [esp + 0x2c], 0
call fcn.10058f70
mov byte [esp + 0x144], 0x16
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0xb0]
call fcn.10056080
push 0x100e3b10
lea edx, [esp + 0xb0]
push edx
call fcn.100909fc
mov byte [esp + 0x144], 6
lea ecx, [esp + 0xfc]
call fcn.100326d0
mov byte [esp + 0x144], 1
lea ecx, [esp + 0x118]
call fcn.100326d0
mov dword [esp + 0x144], 0xffffffff
lea ecx, [esp + 0xd4]
call fcn.100326d0
mov ecx, dword [esp + 0x13c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x120]
xor ecx, esp
call fcn.1008db44
add esp, 0x134
ret 4