Function at 0x100420c0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100bb5d1
mov eax, dword fs:[0]
push eax
sub esp, 0x268
mov eax, dword [0x100f51d4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ecx + 0xf8]
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x274], ebx
mov ebx, dword [ecx + 0xf4]
mov dword [ebp - 0x270], ebx
mov ebx, dword [ecx + 0x110]
mov dword [ebp - 0x264], ebx
mov ebx, dword [ecx + 0x114]
mov dword [ebp - 0x260], ebx
mov ebx, dword [ecx + 0x118]
mov dword [eax], 0
push 0x208
mov dword [ebp - 0x268], eax
lea eax, [ebp - 0x224]
mov dword [edx], 0
mov esi, dword [ecx + 0x34]
push 0
push eax
mov dword [ebp - 0x26c], edx
mov dword [ebp - 0x230], ebx
mov dword [ebp - method.CQHSimpleFile.virtual_0], vtable.CQHSimpleFile.0
mov dword [ebp - 0x228], 0xffffffff
mov dword [ebp - 0x1c], esi
call fcn.10097030
add esp, 0xc
test esi, esi
je 0x10042184
call fcn.1004d490
mov dword [ebp - 4], 0
sub esp, 8
lea ecx, [ebp - 0x22c]
push edi
call fcn.1004c450
mov ebx, dword [ebp - 0x228]
test eax, eax
je 0x10042455
cmp ebx, 0xffffffff
je 0x10042455
xor eax, eax
mov dword [ebp - 0x23c], eax
mov dword [ebp - 0x238], eax
cmp dword [ebp - 0x1c], eax
je 0x100421dc
lea ecx, [eax + 0x28]
call fcn.10012b40
test eax, eax
je 0x100421dc
lea ecx, [ebp - 0x23c]
push ecx
push ebx
call eax
jmp 0x100421ea
lea eax, [ebp - 0x23c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x10042455
cmp dword [ebp - 0x238], 0
jl 0x10042455
mov edi, dword [ebp - 0x23c]
jg 0x10042210
cmp edi, 0x40
jbe 0x10042455
mov eax, edi
cmp edi, 0xa00000
jl 0x1004221f
mov eax, 0xa00000
push eax
lea ecx, [ebp - 0x254]
mov dword [ebp - method.CQHSimpleSmartBuffer.virtual_0], vtable.CQHSimpleSmartBuffer.0
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x24c], 0
mov dword [ebp - 0x248], 0
call fcn.1004c250
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x248]
test eax, eax
je 0x10042426
mov esi, dword [ebp - 0x250]
lea ecx, [ebp - 0x22c]
push esi
push eax
call fcn.1004c510
cmp eax, esi
jne 0x10042426
mov ecx, dword [ebp - 0x248]
push edi
call fcn.10041f10
add esp, 4
test eax, eax
je 0x10042426
mov esi, dword [eax + 4]
mov eax, dword [eax]
mov dword [ebp - 0x234], eax
test esi, esi
je 0x10042426
test eax, eax
je 0x10042426
mov ecx, eax
xor eax, eax
add ecx, 0xc
adc eax, eax
cmp eax, dword [ebp - 0x238]
ja 0x10042426
jb 0x100422d1
cmp ecx, edi
ja 0x10042426
push esi
lea ecx, [ebp - 0x244]
call fcn.1004c150
mov byte [ebp - 4], 2
mov edi, dword [ebp - 0x238]
test edi, edi
je 0x100423fd
push ecx
push dword [ebp - 0x234]
lea ecx, [ebp - 0x22c]
call fcn.1004c5b0
cmp eax, 0xffffffff
je 0x100423fd
push esi
push edi
lea ecx, [ebp - 0x22c]
call fcn.1004c510
cmp eax, esi
jne 0x100423fd
mov ecx, dword [edi]
cmp ecx, esi
ja 0x100423fd
movzx eax, word [edi + 4]
mov edx, 0x100
cmp ax, dx
je 0x10042345
mov edx, 0x200
cmp ax, dx
jne 0x100423fd
cmp word [edi + 6], 2
jne 0x100423fd
lea eax, [ecx - 8]
xor esi, esi
mov dword [ebp - 0x25c], eax
lea eax, [edi + 8]
mov dword [ebp - 0x258], eax
lea eax, [ebp - 0x25c]
push eax
push esi
push esi
push 0x10001
push 5
call dword [ebp - 0x230]
mov dword [ebp - 0x230], eax
test eax, eax
je 0x100423ff
push esi
push esi
push esi
push esi
push 2
push 0x10001
call dword [ebp - 0x260]
mov dword [ebp - 0x234], eax
test eax, eax
je 0x100423db
push 1
push dword [ebp - 0x25c]
push dword [ebp - 0x258]
push eax
call dword [ebp - 0x264]
test eax, eax
je 0x100423db
mov ecx, dword [ebp - 0x268]
mov esi, 1
mov eax, dword [ebp - 0x230]
mov dword [ecx], eax
mov ecx, dword [ebp - 0x26c]
mov eax, dword [ebp - 0x234]
mov dword [ecx], eax
jmp 0x100423ff
mov eax, dword [ebp - 0x230]
push 0
push eax
call dword [ebp - 0x270]
mov eax, dword [ebp - 0x234]
test eax, eax
je 0x100423ff
push eax
call dword [ebp - 0x274]
jmp 0x100423ff
xor esi, esi
mov byte [ebp - 4], 1
mov dword [ebp - method.CQHSimpleSmartBuffer.virtual_0], vtable.CQHSimpleSmartBuffer.0
test edi, edi
je 0x10042428
push edi
call fcn.10071694
add esp, 4
mov dword [ebp - 0x238], 0
jmp 0x10042428
xor esi, esi
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x248]
mov dword [ebp - method.CQHSimpleSmartBuffer.virtual_0], vtable.CQHSimpleSmartBuffer.0
test eax, eax
je 0x10042457
push eax
call fcn.10071694
add esp, 4
mov dword [ebp - 0x248], 0
jmp 0x10042457
xor esi, esi
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - method.CQHSimpleFile.virtual_0], vtable.CQHSimpleFile.0
cmp ebx, 0xffffffff
je 0x10042497
cmp dword [ebp - 0x1c], 0
je 0x10042486
mov ecx, 0x16
call fcn.10012b40
push ebx
test eax, eax
je 0x10042487
call eax
jmp 0x1004248d
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x228], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10071699
mov esp, ebp
pop ebp
ret 0xc