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

Disassembly:
push 0xffffffffffffffff
push 0x1009ead3
mov eax, dword fs:[0]
push eax
sub esp, 0xf0
mov eax, dword [0x100c230c]
xor eax, esp
mov dword [esp + 0xe8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100c230c]
xor eax, esp
push eax
lea eax, [esp + 0x104]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x114]
xor ebx, ebx
mov dword [ebp + 0xb4], ebx
xor edi, edi
cmp dword [ebp + 0xb0], 8
jb 0x10056d2d
mov eax, dword [ebp + 0x9c]
jmp 0x10056d33
lea eax, [ebp + 0x9c]
push ebx
push 0x80
push 3
push ebx
push 3
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [esp + 0x34], esi
cmp esi, 0xffffffff
je 0x100574d8
lea eax, [esp + 0x2c]
push eax
push esi
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x100574d8
cmp dword [esp + 0x30], ebx
jne 0x100574d8
mov eax, dword [esp + 0x2c]
cmp eax, 0x98
jb 0x100574d8
push 0x100c49e4
push eax
call fcn.10076988
add esp, 8
mov dword [esp + 0x14], eax
cmp eax, ebx
je 0x100574d4
mov edx, dword [esp + 0x2c]
push ebx
lea ecx, [esp + 0x3c]
push ecx
push edx
push eax
push esi
mov dword [esp + 0x4c], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100574d4
mov edi, dword [esp + 0x2c]
cmp edi, dword [esp + 0x38]
jne 0x100574d4
mov esi, dword [esp + 0x14]
call fcn.100597c0
test eax, eax
je 0x100574d0
xor eax, eax
mov ecx, 0x26
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
lea edx, [esp + 0x40]
mov dword [esp + 0x42], eax
mov dword [esp + 0x46], eax
mov dword [esp + 0x4a], eax
mov word [esp + 0x4e], ax
push edx
lea eax, [ebp + 0x78]
xor ecx, ecx
push eax
mov word [esp + 0x48], cx
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
mov ecx, dword [ebp + 0x6c]
mov esi, dword [esp + 0x14]
add ecx, esi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ebx
cmp dword [ebp + 0x70], ebx
jbe 0x10057083
mov edx, dword [esp + 0x2c]
jmp 0x10056e40
lea eax, [edx + esi]
cmp ecx, eax
ja 0x10057083
mov eax, dword [ecx + 0x1c]
add eax, dword [ebp + 0x6c]
cmp eax, edx
ja 0x10057083
lea edi, [eax + esi]
mov dword [esp + 0x20], ebx
cmp dword [ecx + 0x20], ebx
jbe 0x10057058
lea esp, [esp]
movzx eax, word [edi]
mov edx, 0x104
cmp ax, dx
ja 0x10057050
movzx eax, ax
xor ecx, ecx
mov dword [esp + 0x24], eax
push eax
lea eax, [edi + 2]
lea esi, [esp + 0x70]
mov dword [esp + 0x88], 7
mov dword [esp + 0x84], ebx
mov word [esp + 0x74], cx
call fcn.10007450
mov dword [esp + 0x10c], ebx
cmp dword [esp + 0x80], ebx
jbe 0x10056ff5
mov eax, 0x100a6f30
lea ecx, [esp + 0x88]
call fcn.10006660
mov byte [esp + 0x10c], 1
mov ecx, dword [ebp + 0xb8]
cmp ecx, ebx
je 0x10056f1f
mov edx, esi
push edx
lea edx, [esp + 0xe4]
call fcn.10051be0
mov byte [esp + 0x10c], 2
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x90]
call fcn.100073a0
mov byte [esp + 0x10c], 1
lea esi, [esp + 0xe0]
call fcn.100531f0
sub esp, 0x1c
lea eax, [esp + 0xa4]
mov esi, esp
mov dword [esp + 0x44], esp
push eax
call fcn.100066a0
mov byte [esp + 0x128], 3
lea ecx, [ebp + 0xd8]
push ecx
mov byte [esp + 0x12c], 1
call fcn.10058450
cmp eax, ebx
jne 0x10056fe1
xor edx, edx
mov dword [esp + 0xbc], 7
mov dword [esp + 0xb8], ebx
mov word [esp + 0xa8], dx
mov byte [esp + 0x10c], 4
lea eax, [esp + 0xc0]
push eax
call fcn.100614b0
mov byte [esp + 0x10c], 5
xor eax, eax
push 0xffffffffffffffff
mov dword [esp + 0xdc], eax
mov dword [esp + 0xe0], eax
push ebx
lea eax, [esp + 0x90]
lea ecx, [esp + 0xac]
call fcn.100073a0
lea ebx, [ebp + 0xbc]
lea eax, [esp + 0xa4]
call fcn.10059a60
mov byte [esp + 0x10c], 1
lea ecx, [esp + 0xa4]
push ecx
call fcn.10033f40
xor ebx, ebx
mov byte [esp + 0x10c], 0
lea esi, [esp + 0x88]
call fcn.100531f0
mov edx, dword [esp + 0x24]
lea edi, [edi + edx*2 + 4]
mov dword [esp + 0x10c], 0xffffffff
cmp dword [esp + 0x84], 8
jb 0x1005701f
mov eax, dword [esp + 0x70]
push eax
call fcn.100755e2
add esp, 4
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
xor ecx, ecx
inc eax
mov word [esp + 0x70], cx
mov dword [esp + 0x84], 7
mov dword [esp + 0x80], ebx
mov dword [esp + 0x20], eax
mov ecx, edx
cmp eax, dword [edx + 0x20]
jb 0x10056e70
mov edx, dword [esp + 0x2c]
mov esi, dword [esp + 0x14]
mov eax, dword [ebp]
cmp eax, 0x11
jne 0x10057065
add ecx, 0x28
jmp 0x1005706d
cmp eax, 0x17
jne 0x10057071
add ecx, 0x68
mov dword [esp + 0x18], ecx
mov eax, dword [esp + 0x1c]
inc eax
mov dword [esp + 0x1c], eax
cmp eax, dword [ebp + 0x70]
jb 0x10056e40
mov eax, dword [ebp + 0xf4]
cmp eax, ebx
je 0x10057098
call fcn.10057530
mov dword [ebp + 0xf4], ebx
mov esi, dword [ebp + 0x58]
xor ecx, ecx
mov eax, esi
mov edx, 0x30
mul edx
seto cl
push 0x100c49e4
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call fcn.10076988
add esp, 8
mov dword [esp + 0x24], eax
mov dword [esp + 0x10c], 6
cmp eax, ebx
je 0x100570f6
push 0x100565b0
push 0x10056340
push esi
lea edi, [eax + 4]
push 0x30
push edi
mov dword [eax], esi
call fcn.100792dc
mov eax, edi
jmp 0x100570f8
xor eax, eax
mov dword [esp + 0x10c], 0xffffffff
mov dword [ebp + 0xf4], eax
cmp eax, ebx
je 0x100574d0
mov dword [esp + 0x24], ebx
cmp dword [ebp + 0x58], ebx
jbe 0x100574c6
xor esi, esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], ebx
jmp 0x10057134
mov esi, dword [esp + 0x18]
xor edi, edi
mov eax, 7
xor ecx, ecx
mov dword [esp + 0xbc], eax
mov dword [esp + 0xb8], edi
mov word [esp + 0xa8], cx
mov dword [esp + 0x10c], eax
lea edx, [esp + 0xc0]
push edx
call fcn.100614b0
mov dword [esp + 0x10c], 8
xor eax, eax
mov dword [esp + 0xd8], eax
mov dword [esp + 0xdc], eax
lea eax, [esp + 0x6c]
push eax
call fcn.100614b0
mov byte [esp + 0x10c], 9
mov eax, dword [ebp + 0xf4]
mov ecx, dword [ebp + 0xb8]
add eax, esi
mov dword [eax + 0x20], ecx
mov eax, dword [ebp]
mov dword [esp + 0x28], edi
cmp eax, 0x11
jne 0x100571e1
mov eax, dword [ebp + 0x54]
add eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
mov ecx, dword [ebp + 0x64]
mov edi, dword [eax + edx + 8]
add eax, edx
lea ebx, [ecx + edi]
cmp ebx, dword [ebp + 0xc]
ja 0x1005744c
mov ecx, dword [eax]
cmp ecx, dword [ebp + 0x60]
ja 0x1005744c
mov edi, dword [eax + 0xc]
jmp 0x10057214
cmp eax, 0x17
jne 0x1005725e
mov eax, dword [ebp + 0x54]
add eax, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
mov ecx, dword [ebp + 0x64]
mov edi, dword [eax + edx + 0xc]
add eax, edx
lea ebx, [ecx + edi]
cmp ebx, dword [ebp + 0xc]
ja 0x10057473
mov ecx, dword [eax]
cmp ecx, dword [ebp + 0x60]
ja 0x10057473
mov edi, dword [eax + 0x10]
mov eax, dword [eax + 4]
add ebx, edx
lea edx, [ecx + ecx*2]
mov ecx, dword [ebp + 0x5c]
lea edx, [ecx + edx*4]
mov ecx, dword [ebp + 0xf4]
add edx, dword [esp + 0x14]
add ecx, esi
test ebx, ebx
je 0x1005723a
push edx
push eax
push ebx
call fcn.100563b0
mov esi, dword [ebp + 0xf4]
add esi, dword [esp + 0x18]
lea edx, [esp + 0x6c]
push edx
call fcn.10056520
mov dword [esp + 0x28], eax
cmp edi, 0x104
ja 0x1005749a
xor eax, eax
mov word [esp + 0x8c], ax
push edi
mov eax, ebx
lea esi, [esp + 0x8c]
mov dword [esp + 0xa4], 7
mov dword [esp + 0xa0], 0
call fcn.10007450
mov byte [esp + 0x10c], 0xa
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x58], esp
xor edx, edx
push 0xffffffffffffffff
mov edi, 7
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x14], 0
push edx
mov eax, esi
mov word [ecx + 4], dx
call fcn.100073a0
mov byte [esp + 0x128], 0xb
mov byte [esp + 0x128], 0xa
call fcn.10056bb0
test eax, eax
je 0x100573bf
mov eax, 0x100a6f30
lea ecx, [esp + 0xe0]
call fcn.10006660
mov bl, 0xc
mov byte [esp + 0x10c], bl
mov ecx, dword [ebp + 0xb8]
test ecx, ecx
je 0x10057332
mov eax, esi
push eax
lea edx, [esp + 0x54]
call fcn.10051be0
mov byte [esp + 0x10c], 0xd
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0xe8]
call fcn.100073a0
mov byte [esp + 0x10c], bl
lea esi, [esp + 0x50]
call fcn.100531f0
sub esp, 0x1c
lea ecx, [esp + 0xfc]
mov esi, esp
mov dword [esp + 0x58], esp
push ecx
call fcn.100066a0
mov byte [esp + 0x128], 0xe
lea edx, [ebp + 0xd8]
push edx
mov byte [esp + 0x12c], bl
call fcn.10058450
test eax, eax
jne 0x100573ab
push 0xffffffffffffffff
push eax
lea eax, [esp + 0xe8]
lea ecx, [esp + 0xac]
call fcn.100073a0
lea eax, [esp + 0xc0]
push eax
lea ebx, [esp + 0x70]
call fcn.10059970
mov ecx, dword [esp + 0x28]
lea ebx, [ebp + 0xbc]
lea eax, [esp + 0xa4]
mov dword [esp + 0xd8], ecx
call fcn.10059a60
mov byte [esp + 0x10c], 0xa
lea esi, [esp + 0xe0]
call fcn.100531f0
mov byte [esp + 0x10c], 9
cmp dword [esp + 0xa0], 8
jb 0x100573e1
mov edx, dword [esp + 0x8c]
push edx
call fcn.100755e2
add esp, 4
xor eax, eax
mov dword [esp + 0xa0], edi
mov dword [esp + 0x9c], 0
mov word [esp + 0x8c], ax
mov byte [esp + 0x10c], 8
lea ecx, [esp + 0x6c]
push ecx
call fcn.100376e0
mov dword [esp + 0x10c], 0xffffffff
lea edx, [esp + 0xa4]
push edx
call fcn.10033f40
mov eax, dword [esp + 0x24]
add dword [esp + 0x1c], 0x14
add dword [esp + 0x20], 0x20
add dword [esp + 0x18], 0x30
inc eax
xor ebx, ebx
mov dword [esp + 0x24], eax
cmp eax, dword [ebp + 0x58]
jb 0x10057130
jmp 0x100574c6
mov byte [esp + 0x10c], 8
lea eax, [esp + 0x6c]
push eax
call fcn.100376e0
mov dword [esp + 0x10c], 0xffffffff
lea ecx, [esp + 0xa4]
push ecx
jmp 0x100574bf
mov byte [esp + 0x10c], 8
lea edx, [esp + 0x6c]
push edx
call fcn.100376e0
mov dword [esp + 0x10c], 0xffffffff
lea eax, [esp + 0xa4]
push eax
jmp 0x100574bf
mov byte [esp + 0x10c], 8
lea ecx, [esp + 0x6c]
push ecx
call fcn.100376e0
mov dword [esp + 0x10c], 0xffffffff
lea edx, [esp + 0xa4]
push edx
call fcn.10033f40
xor ebx, ebx
mov dword [ebp + 0xb4], 1
mov esi, dword [esp + 0x34]
mov edi, dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp edi, ebx
je 0x100574eb
push edi
call fcn.10076993
add esp, 4
cmp esi, 0xffffffff
je 0x100574f7
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0xb4]
mov ecx, dword [esp + 0x104]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xe8]
xor ecx, esp
call fcn.100755ed
add esp, 0xfc
ret 4