Function at 0x10b2a89
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x438
mov eax, dword [0x111027c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x408], eax
mov eax, dword [ebp + 0x10]
push esi
push edi
mov ebx, ecx
mov dword [ebp - 0x410], eax
mov eax, dword [0x111024c]
mov esi, 0x111024c
cmp eax, esi
je 0x10b2ae1
test byte [eax + 0x1c], 4
je 0x10b2ae1
cmp byte [eax + 0x19], 4
jb 0x10b2ae1
push 0x100b080
push 0x29
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101894a
xor eax, eax
xor ecx, ecx
mov dword [ebp - 0x438], ecx
lea edi, [ebp - 0x434]
stosd dword es:[edi], eax
mov dword [ebp - 0x430], ecx
lea edi, [ebp - 0x42c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov byte [ebp - 0x204], cl
lea edi, [ebp - 0x203]
stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x1f8
stosb byte es:[edi], al
push ecx
lea eax, [ebp - 0x1fc]
push eax
mov byte [ebp - 0x409], 0
mov dword [ebp - 0x414], ecx
call sub.msvcrt.dll_memset
xor eax, eax
mov byte [ebp - 0x404], 0
lea edi, [ebp - 0x403]
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x1f8
xor edi, edi
lea eax, [ebp - 0x3fc]
push edi
push eax
call sub.msvcrt.dll_memset
add esp, 0x18
push edi
push 0x60000080
push 3
push edi
push 1
push 0xc0000000
push dword [ebp - 0x408]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebx], eax
cmp eax, 0xffffffff
jne 0x10b2bc5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x410]
mov dword [ecx], eax
mov ecx, dword [0x111024c]
cmp ecx, esi
je 0x10b2bbd
test byte [ecx + 0x1c], 4
je 0x10b2bbd
cmp byte [ecx + 0x19], 2
jb 0x10b2bbd
push eax
push dword [ebp - 0x408]
push 0x100b080
push 0x2a
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01048c37
push 8
pop eax
jmp 0x10b2f9a
mov ecx, dword [0x111024c]
cmp ecx, esi
je 0x10b2bf7
test byte [ecx + 0x1c], 4
je 0x10b2bf7
cmp byte [ecx + 0x19], 4
jb 0x10b2bf7
push eax
push dword [ebp - 0x408]
mov edi, 0x100b080
push edi
push 0x2b
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01048c37
jmp 0x10b2bfc
mov edi, 0x100b080
push dword [ebp - 0x410]
lea eax, [ebp - 0x409]
push eax
lea eax, [ebp - 0x204]
push eax
mov ecx, ebx
call fcn.010b179a
mov dword [ebp - 0x408], eax
test eax, eax
je 0x10b2c55
mov eax, dword [0x111024c]
cmp eax, esi
je 0x10b2c4a
test byte [eax + 0x1c], 4
je 0x10b2c4a
cmp byte [eax + 0x19], 2
jb 0x10b2c4a
push dword [ebp - 0x408]
push edi
push 0x2c
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019fa8
mov eax, dword [ebp - 0x408]
jmp 0x10b2f9a
cmp byte [ebp - 0x409], 0
je 0x10b2c88
mov eax, dword [0x111024c]
cmp eax, esi
je 0x10b2c81
test byte [eax + 0x1c], 4
je 0x10b2c81
cmp byte [eax + 0x19], 2
jb 0x10b2c81
push edi
push 0x2d
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101894a
push 2
jmp 0x10b2bbf
lea eax, [ebp - 0x1e4]
push eax
call fcn.0109ff5a
cmp eax, 0x10001
je 0x10b2cb5
mov eax, dword [0x111024c]
cmp eax, esi
je 0x10b2c81
test byte [eax + 0x1c], 4
je 0x10b2c81
cmp byte [eax + 0x19], 2
jb 0x10b2c81
push edi
push 0x2e
jmp 0x10b2c76
lea eax, [ebp - 0x1dc]
push eax
mov byte [ebx + 0x28], 1
call fcn.0109ff12
mov dword [ebp - 0x41c], eax
lea eax, [ebp - 0x1c8]
push eax
mov dword [ebp - 0x418], edx
call fcn.0109ff5a
push dword [ebp - 0x410]
mov ecx, ebx
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x404]
push dword [ebp - 0x418]
push dword [ebp - 0x41c]
push eax
call fcn.010ac007
mov dword [ebp - 0x408], eax
test eax, eax
je 0x10b2d3a
mov eax, dword [0x111024c]
cmp eax, esi
je 0x10b2c4a
test byte [eax + 0x1c], 4
je 0x10b2c4a
cmp byte [eax + 0x19], 2
jb 0x10b2c4a
push dword [ebp - 0x408]
push edi
push 0x2f
jmp 0x10b2c3f
mov esi, 0x20000
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
mov dword [ebp - 0x418], edi
test edi, edi
jne 0x10b2d69
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x410]
mov dword [ecx], eax
push 3
jmp 0x10b2bbf
push esi
push 0
push edi
call sub.msvcrt.dll_memset
add esp, 0xc
push edi
call fcn.0109cc1a
mov edi, eax
mov ecx, 0x80
lea esi, [ebp - 0x404]
rep movsd dword es:[edi], dword [esi]
xor esi, esi
push esi
push esi
push 1
push esi
mov dword [ebp - 0x408], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp - 0x420], eax
cmp eax, esi
jne 0x10b2dcb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x410]
mov dword [ecx], eax
push 3
pop esi
push dword [ebp - 0x418]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, esi
jmp 0x10b2f9a
lea eax, [ebp - 0x430]
push eax
mov dword [ebp - 0x428], esi
mov dword [ebp - 0x424], esi
mov esi, 0x200
push esi
push dword [ebp - 0x408]
push dword [ebx]
call fcn.010a0293
mov edi, dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
push 1
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x430]
push eax
push dword [ebx]
call edi
test eax, eax
jne 0x10b2e2d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x410]
mov dword [ecx], eax
push dword [ebp - 0x420]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 5
jmp 0x10b2db7
cmp dword [ebp - 0x414], esi
je 0x10b2e73
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x10b2e65
test byte [eax + 0x1c], 4
je 0x10b2e65
cmp byte [eax + 0x19], 2
jb 0x10b2e65
push dword [ebp - 0x414]
push 0x100b080
push 0x30
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019fa8
mov eax, dword [ebp - 0x410]
mov dword [eax], 0x45d
jmp 0x10b2e1d
lea eax, [ebp - 0x438]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x10b2ed6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x410]
mov dword [ecx], eax
mov ecx, dword [0x111024c]
cmp ecx, 0x111024c
je 0x10b2ec3
test byte [ecx + 0x1c], 4
je 0x10b2ec3
cmp byte [ecx + 0x19], 2
jb 0x10b2ec3
push eax
push dword [ebx]
push 0x100b080
push 0x31
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01083f04
push dword [ebp - 0x420]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 8
jmp 0x10b2db7
mov eax, dword [ebp - 0x438]
mov ecx, dword [ebp - 0x434]
sub eax, esi
mov dword [ebp - 0x428], eax
lea eax, [ebp - 0x430]
push eax
push esi
push dword [ebp - 0x408]
sbb ecx, 0
push dword [ebx]
mov dword [ebp - 0x424], ecx
call fcn.010a0293
push 1
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x430]
push eax
push dword [ebx]
call edi
test eax, eax
je 0x10b2e0f
cmp dword [ebp - 0x414], esi
je 0x10b2f62
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x10b2e65
test byte [eax + 0x1c], 4
je 0x10b2e65
cmp byte [eax + 0x19], 2
jb 0x10b2e65
push dword [ebp - 0x414]
push 0x100b080
push 0x32
jmp 0x10b2e5a
push dword [ebp - 0x418]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x10b2f98
test byte [eax + 0x1c], 4
je 0x10b2f98
cmp byte [eax + 0x19], 4
jb 0x10b2f98
push 0x100b080
push 0x33
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101894a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0106f798
leave
ret 0xc