Function at 0x1000cab8
Capabilities:
Get file size
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x5c
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x58], edx
mov esi, ecx
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x10], edi
call fcn.1000d146
test eax, eax
jne 0x1000caef
mov eax, 0x8004011c
jmp 0x1000d0f1
push ecx
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0x38]
call fcn.1000d20a
mov ebx, eax
test ebx, ebx
jne 0x1000d096
mov eax, dword [ebp - 0x34]
mov ebx, edi
push edi
push edi
push 3
push edi
push 3
push SysReAllocStringLen
push esi
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0xc], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x1000cb46
mov ebx, 0x80040116
mov dword [ebp - 0xc], ebx
jmp 0x1000cba3
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1000cb5d
mov ebx, 0x80040116
jmp 0x1000cb91
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x2c], eax
test eax, eax
jne 0x1000cb74
mov ebx, 0x8007000e
jmp 0x1000cb91
push 0
lea ecx, [ebp - 0x44]
push ecx
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1000cb56
cmp esi, dword [ebp - 0x44]
je 0x1000cb96
mov ebx, 0x80004005
mov dword [ebp - 0xc], ebx
jmp 0x1000cb9f
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], esi
test edi, edi
je 0x1000cbaa
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
js 0x1000cf78
mov esi, dword [0x1008b190]
mov edi, esp
xor eax, eax
mov ecx, esi
push eax
push eax
push dword [ebp - 0x30]
push eax
push eax
push 0x10000
call dword [0x1008c6d4]
call esi
cmp edi, esp
je 0x1000cbdd
mov ecx, 4
int 0x29
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x1000cbf0
call fcn.1000df00
mov ebx, eax
jmp 0x1000cf3a
mov esi, dword [0x1008b18c]
mov edi, esp
push 1
push dword [ebp - 4]
mov ecx, esi
push dword [ebp - 0x24]
push eax
call dword [0x1008c6d4]
call esi
cmp edi, esp
je 0x1000cc16
mov ecx, 4
int 0x29
test eax, eax
je 0x1000cbe4
mov esi, dword [0x1008b194]
lea eax, [ebp - 4]
mov edi, esp
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 8]
mov ecx, esi
push eax
push 0
push 0xb
push dword [ebp - 0x1c]
call dword [0x1008c6d4]
call esi
cmp edi, esp
je 0x1000cc4d
mov ecx, 4
int 0x29
test eax, eax
je 0x1000cbe4
cmp dword [ebp - 4], 4
je 0x1000cc61
mov ebx, 0x80004005
jmp 0x1000cf53
xor eax, eax
inc eax
cmp dword [ebp - 8], eax
jne 0x1000cd0e
mov esi, dword [0x1008b194]
lea eax, [ebp - 4]
mov edi, esp
xor ecx, ecx
push eax
push ecx
push ecx
push 0xc
push dword [ebp - 0x1c]
mov dword [ebp - 4], ecx
mov ecx, esi
call dword [0x1008c6d4]
call esi
cmp edi, esp
je 0x1000cc9a
mov ecx, 4
int 0x29
test eax, eax
je 0x1000cc57
cmp dword [ebp - 4], 0
je 0x1000cc57
push dword [ebp - 4]
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ecx, eax
mov dword [ebp - 0x10], ecx
test ecx, ecx
jne 0x1000ccc2
mov ebx, 0x8007000e
jmp 0x1000cf53
mov esi, dword [0x1008b194]
lea eax, [ebp - 4]
mov edi, esp
push eax
push ecx
push 0
push 0xc
push dword [ebp - 0x1c]
mov ecx, esi
call dword [0x1008c6d4]
call esi
cmp edi, esp
je 0x1000cceb
mov ecx, 4
int 0x29
test eax, eax
jne 0x1000cd03
call fcn.1000df00
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.10037062
jmp 0x1000cf3a
mov eax, dword [ebp - 4]
mov dword [ebp - 0x28], eax
jmp 0x1000cf53
push dword [ebp - 0x1c]
push eax
push dword [ebp - 0x30]
push eax
push eax
call dword [sym.imp.CRYPT32.dll_CertOpenStore]
mov dword [ebp - 0x18], eax
test eax, eax
jne 0x1000cd30
call fcn.1000df00
mov ebx, eax
jmp 0x1000cf53
mov eax, dword [ebp - 8]
shl eax, 2
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x1000cd50
mov ebx, 0x8007000e
jmp 0x1000cf43
mov esi, dword [0x1008b180]
mov edi, esp
push 0
push dword [ebp - 0x18]
mov ecx, esi
call dword [0x1008c6d4]
call esi
cmp edi, esp
je 0x1000cd72
mov ecx, 4
int 0x29
mov esi, eax
test esi, esi
je 0x1000cdb1
mov ebx, dword [ebp - 0x14]
push esi
call dword [sym.imp.CRYPT32.dll_CertDuplicateCertificateContext]
mov edi, esp
mov dword [ebx], eax
push esi
push dword [ebp - 0x18]
mov esi, dword [0x1008b180]
lea ebx, [ebx + 4]
mov ecx, esi
call dword [0x1008c6d4]
call esi
cmp edi, esp
je 0x1000cda8
mov ecx, 4
int 0x29
mov esi, eax
test esi, esi
jne 0x1000cd7b
mov ebx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
xor esi, esi
mov dword [ebp - 0x30], esi
test eax, eax
je 0x1000ceeb
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + esi*4]
test edx, edx
je 0x1000cf3e
mov edx, dword [edx + 0xc]
xor edi, edi
mov dword [ebp - 0x4c], edx
xor edx, edx
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x44], edx
test eax, eax
je 0x1000cea7
cmp esi, edx
je 0x1000ce89
and dword [ebp - 0x40], 0
lea eax, [ebp - 0x40]
mov esi, dword [0x1008b1a8]
mov edi, esp
push eax
push 0
push dword [ecx + edx*4]
mov ecx, esi
push dword [ebp - 0x18]
call dword [0x1008c6d4]
call esi
cmp edi, esp
je 0x1000ce1c
mov ecx, 4
int 0x29
mov dword [ebp - 0x50], eax
test eax, eax
je 0x1000ce7a
mov esi, dword [0x1008b17c]
mov edi, esp
push dword [eax + 0xc]
mov ecx, esi
push dword [ebp - 0x4c]
push 1
call dword [0x1008c6d4]
call esi
cmp edi, esp
je 0x1000ce48
mov ecx, 4
int 0x29
mov esi, dword [0x1008b1b0]
mov edi, esp
push dword [ebp - 0x50]
mov ecx, esi
mov dword [ebp - 0x2c], eax
call dword [0x1008c6d4]
call esi
cmp edi, esp
je 0x1000ce6b
mov ecx, 4
int 0x29
mov edi, dword [ebp - 0x2c]
test edi, edi
je 0x1000ce7d
mov eax, dword [ebp - 8]
mov esi, dword [ebp - 0x30]
jmp 0x1000ce99
mov edi, dword [ebp - 0x2c]
mov eax, dword [ebp - 8]
mov esi, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x44]
inc edx
mov dword [ebp - 0x44], edx
cmp edx, eax
jb 0x1000cde7
test edi, edi
je 0x1000cea7
inc esi
mov dword [ebp - 0x30], esi
cmp esi, eax
jb 0x1000cdc1
jmp 0x1000ceeb
mov eax, dword [ecx + esi*4]
mov eax, dword [eax + 8]
push eax
push 0x40
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ecx, eax
mov dword [ebp - 0x10], ecx
test ecx, ecx
je 0x1000cd46
mov eax, dword [ebp - 0x14]
push dword [ebp - 4]
mov eax, dword [eax + esi*4]
push dword [eax + 4]
push ecx
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 4]
add esp, 0xc
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x48], 1
xor ecx, ecx
mov dword [ebp - 0x44], ecx
test eax, eax
je 0x1000cf26
mov ebx, dword [ebp - 0x14]
mov esi, dword [0x1008b1b0]
mov edi, esp
push dword [ebx + ecx*4]
mov ecx, esi
call dword [0x1008c6d4]
call esi
cmp edi, esp
je 0x1000cf17
mov ecx, 4
int 0x29
mov ecx, dword [ebp - 0x44]
inc ecx
mov dword [ebp - 0x44], ecx
cmp ecx, dword [ebp - 8]
jb 0x1000cef7
mov ebx, dword [ebp - 0xc]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x48], 0
jne 0x1000cf43
mov ebx, 0x8004010f
test ebx, ebx
jne 0x1000cf43
mov ebx, 0x80004005
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1000cf53
push 0
push eax
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x1000cf78
mov esi, dword [0x1008b198]
mov edi, esp
push eax
mov ecx, esi
call dword [0x1008c6d4]
call esi
cmp edi, esp
je 0x1000cf78
mov ecx, 4
int 0x29
cmp dword [ebp - 0x24], 0
je 0x1000cf86
lea ecx, [ebp - 0x24]
call fcn.10037062
test ebx, ebx
je 0x1000d019
xor esi, esi
push esi
push esi
push 3
push esi
push 3
push SysReAllocStringLen
push dword [ebp - 0x54]
mov ebx, esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x1000cfb5
mov ebx, 0x80040116
jmp 0x1000d00e
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1000cfcb
mov ebx, 0x80040116
jmp 0x1000d00a
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x50], eax
test eax, eax
jne 0x1000cfe2
mov ebx, 0x8007000e
jmp 0x1000d00a
push 0
lea ecx, [ebp - 0x54]
push ecx
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1000cfc4
cmp esi, dword [ebp - 0x54]
je 0x1000d001
mov ebx, 0x80004005
jmp 0x1000d00a
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x28], esi
test edi, edi
je 0x1000d015
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x1000d096
mov esi, dword [0x1008b1c0]
lea eax, [ebp - 0x20]
mov edi, esp
mov ecx, esi
push eax
push 2
push dword [ebp - 0x28]
push dword [ebp - 0x10]
push 1
push dword [ebp - 0x38]
call dword [0x1008c6d4]
call esi
cmp edi, esp
je 0x1000d047
mov ecx, 4
int 0x29
test eax, eax
jne 0x1000d052
call fcn.1000df00
jmp 0x1000d094
push 0x38
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
mov dword [ebp - 0x3c], esi
test esi, esi
jne 0x1000d06c
mov ebx, 0x8007000e
jmp 0x1000d096
xor eax, eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0xc], eax
push dword [ebp - 0x20]
call dword [sym.imp.CRYPT32.dll_CertDuplicateCertificateContext]
push esi
mov dword [esi + 0x1c], eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov edx, dword [ebp - 0x20]
mov ecx, eax
call fcn.1000d803
mov ebx, eax
cmp dword [ebp - 0x20], 0
je 0x1000d0bc
mov esi, dword [0x1008b1b0]
mov edi, esp
push dword [ebp - 0x20]
mov ecx, esi
call dword [0x1008c6d4]
call esi
cmp edi, esp
je 0x1000d0bc
mov ecx, 4
int 0x29
mov edx, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x38]
call fcn.1000d2aa
test ebx, ebx
jne 0x1000d0df
mov ebx, eax
test eax, eax
jne 0x1000d0df
mov ecx, dword [ebp - 0x58]
test ecx, ecx
je 0x1000d0df
mov eax, dword [ebp - 0x3c]
mov dword [ecx], eax
jmp 0x1000d0e7
lea ecx, [ebp - 0x3c]
call fcn.10037062
lea ecx, [ebp - 0x10]
call fcn.10037062
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret