Function at 0x1003ca80
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100bb29c
mov eax, dword fs:[0]
push eax
sub esp, 0x19c
mov eax, dword [0x100f51d4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x150], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x144], eax
mov dword [ebp - 0x18c], ecx
cmp eax, 0xffffffff
je 0x1003d0c5
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.1003c540
add esp, 8
test eax, eax
jne 0x1003d0c5
call fcn.1004d490
mov ebx, dword [ebp + 0x1c]
test ebx, ebx
je 0x1003cb05
mov edi, 0x1003d810
mov eax, 0x1003d850
mov esi, 0x10027010
jmp 0x1003cb16
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov eax, dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov dword [ebp - 0x178], eax
test edi, edi
je 0x1003d0c5
test eax, eax
je 0x1003d0c5
xor eax, eax
lea edx, [ebp - 0x1a8]
push eax
push edx
mov ecx, eax
push ecx
push eax
push dword [ebp - 0x144]
mov dword [ebp - 0x148], ecx
call edi
test eax, eax
je 0x1003cc36
xor eax, eax
mov dword [ebp - 0x174], eax
mov dword [ebp - 0x170], eax
mov eax, dword [ebp - 0x150]
cmp dword [eax + 0x24], 0
je 0x1003cbf6
test esi, esi
je 0x1003d0c5
lea eax, [ebp - 0x174]
push eax
push dword [ebp - 0x144]
call esi
test eax, eax
je 0x1003cc36
mov dword [ebp - method.IInternalReadFile.virtual_0], vtable.IInternalReadFile.0
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x144]
mov dword [ebp - 0x1a0], 0x100e5c68
mov dword [ebp - 0x198], ebx
mov dword [ebp - 0x19c], esi
mov dword [ebp - 4], 1
lea edx, [ebp - 0x174]
mov ecx, dword [ebp - 0x150]
lea eax, [ecx + 0x2c]
push eax
lea eax, [ecx + 0x28]
push eax
lea ecx, [ebp - 0x1a0]
call fcn.10048a60
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - method.IInternalReadFile.virtual_0], vtable.IInternalReadFile.0
jmp 0x1003cc0f
test esi, esi
je 0x1003cc09
lea eax, [ebp - 0x174]
push eax
push dword [ebp - 0x144]
call esi
mov esi, dword [ebp - 0x144]
mov ebx, dword [ebp - 0x150]
cmp dword [ebx + 0x24], 0
je 0x1003cc51
xor eax, eax
lea ecx, [ebp - 0x1a8]
push eax
push ecx
push eax
xor ebx, ebx
mov dword [ebp - 0x148], eax
push ebx
push esi
call edi
test eax, eax
jne 0x1003cc53
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x1003d0ca
movzx eax, ax
or eax, 0x80070000
jmp 0x1003d0ca
xor ebx, ebx
mov dword [ebp - 0x16c], 0
mov dword [ebp - 0x168], 0
mov dword [ebp - 0x164], 0
mov dword [ebp - 4], 3
lea eax, [ebp - 0x16c]
push eax
push 0x10000
mov ecx, eax
call fcn.100150c0
mov eax, dword [ebp - 0x168]
mov esi, dword [ebp - 0x16c]
sub eax, esi
cmp eax, 0x10000
je 0x1003ccaa
mov esi, 0x8007000e
jmp 0x1003d066
mov edi, dword [ebp + 0x10]
mov eax, edi
and eax, 1
mov dword [ebp - 0x154], 0
mov dword [ebp - 0x184], eax
or eax, 0
je 0x1003cce9
lea eax, [ebp - 0x6c]
push eax
call fcn.1005cd10
add esp, 4
mov dword [ebp - 0x188], 0
mov dword [ebp - 0x154], 1
jmp 0x1003ccf5
mov eax, dword [ebp - 0x158]
mov dword [ebp - 0x188], eax
mov eax, edi
and eax, 2
mov dword [ebp - 0x190], eax
or eax, 0
je 0x1003cd29
lea eax, [ebp - 0xcc]
push eax
call fcn.1005cf70
mov ecx, dword [ebp - 0x154]
add esp, 4
mov dword [ebp - 0x194], ecx
inc ecx
mov dword [ebp - 0x154], ecx
jmp 0x1003cd35
mov eax, dword [ebp - 0x158]
mov dword [ebp - 0x194], eax
and edi, 8
mov eax, edi
mov dword [ebp - 0x158], edi
or eax, 0
je 0x1003cd56
lea eax, [ebp - 0x13c]
push eax
call fcn.1005d3f0
add esp, 4
jmp 0x1003cd62
mov eax, dword [ebp - 0x158]
mov dword [ebp - 0x154], eax
mov dword [ebp - 0x17c], 0
mov dword [ebp - 0x180], 0
jmp 0x1003cd80
mov edi, dword [ebp - 0x144]
lea eax, [ebp - 0x140]
push 0
push eax
push 0x10000
push esi
push edi
call dword [ebp - 0x178]
test eax, eax
jne 0x1003cdd0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x21
jne 0x1003cfc4
push ecx
lea eax, [ebp - 0x140]
mov edx, esi
push eax
push 0x10000
mov ecx, edi
call fcn.100161d0
add esp, 0xc
test eax, eax
je 0x1003cfc4
mov edi, dword [ebp - 0x140]
test edi, edi
je 0x1003cfe9
mov eax, dword [ebp - 0x17c]
mov ecx, dword [ebp - 0x180]
add eax, edi
mov dword [ebp - 0x17c], eax
adc ecx, 0
mov dword [ebp - 0x180], ecx
cmp ecx, dword [ebp - 0x170]
jg 0x1003cfe2
jl 0x1003ce15
cmp eax, dword [ebp - 0x174]
ja 0x1003cfe2
mov edx, ebx
mov dword [ebp - 0x15c], 0
mov ebx, dword [ebp - 0x148]
mov eax, edi
add eax, edx
mov dword [ebp - 0x160], ebx
mov dword [ebp - 0x14c], eax
mov eax, 0
adc eax, ebx
mov dword [ebp - 0x148], eax
mov eax, dword [ebp - 0x150]
mov eax, dword [eax + 0x28]
lea ecx, [eax + 4]
cmp dword [ebp - 0x15c], ebx
jb 0x1003cf58
ja 0x1003ce66
cmp ecx, edx
jbe 0x1003cf58
xor ecx, ecx
cmp ecx, dword [ebp - 0x148]
ja 0x1003cf58
jb 0x1003ce82
cmp eax, dword [ebp - 0x14c]
jae 0x1003cf58
test eax, eax
je 0x1003cf58
mov ecx, dword [ebp - 0x150]
cmp dword [ecx + 0x24], 0
je 0x1003cf58
cmp dword [ecx + 0x2c], 0
je 0x1003cf58
lea ecx, [eax + 1]
lea ebx, [ecx + 1]
lea edi, [ebx + 1]
mov dword [ebp - 0x15c], edi
xor edi, edi
cmp edi, dword [ebp - 0x160]
jb 0x1003cec9
ja 0x1003cec3
cmp eax, edx
jb 0x1003cec9
sub eax, edx
mov byte [eax + esi], 0
xor edi, edi
mov eax, edx
cmp edi, dword [ebp - 0x160]
jb 0x1003cef5
ja 0x1003cedb
cmp ecx, edx
jb 0x1003cef5
xor edi, edi
cmp edi, dword [ebp - 0x148]
ja 0x1003cef5
jb 0x1003ceef
cmp ecx, dword [ebp - 0x14c]
jae 0x1003cef5
sub ecx, eax
mov byte [ecx + esi], 0
mov ecx, dword [ebp - 0x160]
xor edi, edi
cmp edi, ecx
mov edi, dword [ebp - 0x140]
jb 0x1003cf2d
ja 0x1003cf0d
cmp ebx, edx
jb 0x1003cf2d
xor edi, edi
cmp edi, dword [ebp - 0x148]
mov edi, dword [ebp - 0x140]
ja 0x1003cf2d
jb 0x1003cf27
cmp ebx, dword [ebp - 0x14c]
jae 0x1003cf2d
sub ebx, eax
mov byte [ebx + esi], 0
xor ebx, ebx
cmp ebx, ecx
jb 0x1003cf58
mov eax, dword [ebp - 0x15c]
ja 0x1003cf3f
cmp eax, edx
jb 0x1003cf58
cmp ebx, dword [ebp - 0x148]
ja 0x1003cf58
jb 0x1003cf51
cmp eax, dword [ebp - 0x14c]
jae 0x1003cf58
mov ecx, edx
sub eax, ecx
mov byte [eax + esi], bl
mov eax, dword [ebp - 0x184]
or eax, 0
je 0x1003cf77
push edi
lea eax, [ebp - 0x6c]
push esi
push eax
call fcn.1005cd50
mov edi, dword [ebp - 0x140]
add esp, 0xc
mov eax, dword [ebp - 0x190]
or eax, 0
je 0x1003cf99
push edi
lea eax, [ebp - 0xcc]
push esi
push eax
call fcn.1005cfb0
mov edi, dword [ebp - 0x140]
add esp, 0xc
mov eax, dword [ebp - 0x158]
or eax, 0
mov ebx, dword [ebp - 0x14c]
je 0x1003cd80
push edi
lea eax, [ebp - 0x13c]
push esi
push eax
call fcn.1005d450
add esp, 0xc
jmp 0x1003cd80
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x1003d066
movzx esi, si
or esi, 0x80070000
jmp 0x1003d066
mov esi, 0xd
jmp 0x1003d066
mov eax, dword [ebp - 0x184]
or eax, 0
mov ebx, dword [ebp - 0x18c]
je 0x1003d014
lea eax, [ebp - 0x6c]
push eax
mov eax, dword [ebp - 0x188]
movzx eax, word [ebx + eax*4 + 8]
add eax, ebx
push eax
call fcn.1005cbf0
add esp, 8
mov eax, dword [ebp - 0x190]
or eax, 0
je 0x1003d03c
lea eax, [ebp - 0xcc]
push eax
mov eax, dword [ebp - 0x194]
movzx eax, word [ebx + eax*4 + 8]
add eax, ebx
push eax
call fcn.1005ce30
add esp, 8
mov eax, dword [ebp - 0x158]
or eax, 0
je 0x1003d064
lea eax, [ebp - 0x13c]
push eax
mov eax, dword [ebp - 0x154]
movzx eax, word [ebx + eax*4 + 8]
add eax, ebx
push eax
call fcn.1005d110
add esp, 8
xor esi, esi
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x16c]
test ecx, ecx
je 0x1003d0c1
mov edx, dword [ebp - 0x164]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x1003d099
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003d0e8
push edx
push ecx
call fcn.100716aa
add esp, 8
mov dword [ebp - 0x16c], 0
mov dword [ebp - 0x168], 0
mov dword [ebp - 0x164], 0
mov eax, esi
jmp 0x1003d0ca
mov eax, 0x80070057
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10071699
mov esp, ebp
pop ebp
ret 0x18
call fcn.1009a1bd
int3