Function at 0x102672a
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], ebx
call fcn.01014810
xor eax, eax
lea edi, [ebp - 8]
mov dword [ebp - 0xc], ebx
stosd dword es:[edi], eax
cmp dword [ebp + 8], ebx
jne 0x102678c
mov eax, dword [section..data]
cmp eax, section..data
je 0x1026776
test byte [eax + 0x1c], 1
je 0x1026776
push 0x1004460
push 0x2e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010078b5
mov edi, 0x80070057
lea ecx, [ebp - 0x2c]
call fcn.01014822
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0x10
mov ebx, dword [ebp + 0x10]
cmp ebx, 1
je 0x10267a2
cmp ebx, 4
je 0x10267a2
cmp ebx, 2
jne 0x10268c4
xor edi, edi
push edi
push edi
push 3
push edi
push 1
push 0x80
push dword [ebp + 8]
call sub.KERNEL32.dll_CreateFileW
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x102680a
call sub.KERNEL32.dll_GetLastError
cmp eax, edi
jle 0x10267d3
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x1026980
test byte [eax + 0x1c], 1
je 0x1026980
push edi
push dword [ebp + 8]
push 0x1004460
push 0x2f
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01018c98
jmp 0x1026980
lea ecx, [ebp - 0xc]
push ecx
push eax
call sub.KERNEL32.dll_GetFileSizeEx
test eax, eax
jne 0x1026862
call sub.KERNEL32.dll_GetLastError
cmp eax, edi
jle 0x102682b
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x1026976
test byte [eax + 0x1c], 1
je 0x1026976
push edi
push dword [ebp + 8]
push 0x1004460
push 0x30
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01018c98
jmp 0x1026976
mov eax, dword [esi + 0x98]
add eax, dword [ebp - 0xc]
mov ecx, dword [esi + 0x9c]
adc ecx, dword [ebp - 8]
mov dword [ebp - 0x10], ecx
mov ecx, 0x40000000
jne 0x1026882
cmp eax, ecx
jbe 0x10268c4
mov dword [esi + 0x9c], edi
mov dword [esi + 0x98], ecx
mov edi, 0x8007007a
mov eax, dword [section..data]
cmp eax, section..data
je 0x1026976
test byte [eax + 0x1c], 4
je 0x1026976
push 0x1004460
push 0x31
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010078b5
jmp 0x1026976
push 1
push 5
push dword [ebp + 8]
push dword [esi]
call sub.wer.dll_WerReportAddFile
mov edi, eax
test edi, edi
jge 0x1026907
mov eax, dword [section..data]
cmp eax, section..data
je 0x1026976
test byte [eax + 0x1c], 1
je 0x1026976
push edi
push 0x1004460
push 0x32
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01008600
jmp 0x1026976
push dword [ebp + 8]
lea ecx, [ebp - 0x2c]
call fcn.01014c4a
mov edi, eax
test edi, edi
jge 0x1026934
mov eax, dword [section..data]
cmp eax, section..data
je 0x1026976
test byte [eax + 0x1c], 1
je 0x1026976
push edi
push 0x1004460
push 0x33
jmp 0x10268fa
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x2c]
push eax
lea ecx, [esi + 0xfc]
mov dword [ebp - 0x1c], ebx
call fcn.010264d0
mov edi, eax
test edi, edi
jge 0x1026974
mov eax, dword [section..data]
cmp eax, section..data
je 0x1026976
test byte [eax + 0x1c], 1
je 0x1026976
push edi
push 0x1004460
push 0x34
jmp 0x10268fa
xor edi, edi
cmp dword [ebp - 4], 0
je 0x102677b
push dword [ebp - 4]
call sub.KERNEL32.dll_CloseHandle
jmp 0x102677b