Function at 0x10057020
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x101e68f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
mov eax, dword [esp + 0x44]
push ebx
push ebp
push esi
push edi
xor edi, edi
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x24], edi
call fcn.10077a80
mov eax, dword [esp + 0x58]
mov dword [esp + 0x4c], edi
cmp eax, edi
je 0x10057066
push eax
lea ecx, [esp + 0x1c]
call fcn.100785e0
mov dword [esp + 0x2c], edi
xor ebp, ebp
mov esi, 0x102520f8
mov bl, 2
mov ecx, dword [esi]
push ecx
lea ecx, [esp + 0x18]
call fcn.10077a80
lea ecx, [esp + 0x58]
mov byte [esp + 0x4c], 1
call fcn.10077860
lea edx, [esp + 0x1c]
lea eax, [esp + 0x24]
push edx
push 0x1025234c
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x58], bl
mov dword [esp + 0x28], edi
call fcn.1007ce50
push eax
lea ecx, [esp + 0x5c]
mov byte [esp + 0x50], 3
call fcn.100784b0
lea ecx, [esp + 0x24]
mov byte [esp + 0x4c], bl
call fcn.10078300
mov ecx, dword [esp + 0x58]
cmp dword [ecx - 8], edi
je 0x1005713c
lea ecx, [esp + 0x58]
call fcn.1007c210
lea ecx, [esp + 0x58]
call fcn.1007bf10
mov eax, dword [esp + 0x58]
cmp dword [eax - 8], edi
je 0x100570ff
mov edx, dword [esp + 0x18]
push eax
push edx
call fcn.100d3500
add esp, 8
test eax, eax
jne 0x10057169
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x28]
push eax
push 0x1025234c
push ecx
lea ecx, [esp + 0x20]
call fcn.1007ce50
push eax
lea ecx, [esp + 0x5c]
mov byte [esp + 0x50], 4
call fcn.100784b0
lea ecx, [esp + 0x28]
mov byte [esp + 0x4c], bl
call fcn.10078300
mov edx, dword [esp + 0x58]
cmp dword [edx - 8], edi
jne 0x100570d2
lea ecx, [esp + 0x58]
mov byte [esp + 0x4c], 1
call fcn.10078300
lea ecx, [esp + 0x14]
mov byte [esp + 0x4c], 0
call fcn.10078300
add esi, 8
inc ebp
cmp esi, str.504B
jae 0x1005718c
jmp 0x10057073
lea ecx, [esp + 0x58]
mov esi, 1
mov byte [esp + 0x4c], 1
call fcn.10078300
lea ecx, [esp + 0x14]
mov byte [esp + 0x4c], 0
call fcn.10078300
jmp 0x10057190
mov esi, dword [esp + 0x2c]
mov eax, dword [esp + 0x5c]
cmp eax, edi
je 0x1005719a
mov dword [eax], esi
cmp ebp, 5
jae 0x100572f1
mov eax, dword [ebp*8 + 0x102520fc]
lea ecx, [esp + 0x10]
push eax
call fcn.10077a80
mov ecx, dword [esp + 0x10]
mov byte [esp + 0x4c], 5
mov eax, dword [ecx - 8]
cmp eax, edi
je 0x100572e3
cdq
sub eax, edx
lea ecx, [esp + 0x30]
mov esi, eax
sar esi, 1
call fcn.10070fb4
push 0xffffffffffffffff
push esi
lea ecx, [esp + 0x38]
mov byte [esp + 0x54], 6
call sub.MFC42u.DLL_CByteArray::SetSize
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x30]
push esi
push edx
push eax
call fcn.1011f300
push esi
call sub.MFC42u.DLL_operatornew
mov ebx, eax
add esp, 0x10
cmp ebx, edi
je 0x100572d5
cmp dword [esp + 0x60], edi
jne 0x100572cc
mov ecx, dword [esp + 0x54]
push edi
push 0x80
push 3
push edi
push 7
push bind
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x100572cc
lea edx, [esp + 0x58]
push edi
push edx
push esi
push ebx
push ebp
mov dword [esp + 0x6c], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1005729f
cmp dword [esp + 0x58], esi
jne 0x1005729f
mov edi, dword [esp + 0x34]
mov ecx, esi
mov esi, ebx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x10057271
mov dword [esp + 0x20], 1
jmp 0x100572c5
mov eax, dword [0x10282758]
test eax, eax
je 0x100572c5
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x54]
push ecx
push edx
push str.IsWellKnownFile_Unmatch___s____s_
push str.SDTransform
push 0xffffffffffffffff
push 0x10281ec4
call fcn.100de220
add esp, 0x18
jmp 0x100572c5
cmp dword [0x10282758], edi
je 0x100572c5
mov eax, dword [esp + 0x54]
push eax
push str.IsWellKnownFile_read_file__s__fail
push str.SDTransform
push 0xffffffffffffffff
push 0x10281ec4
call fcn.100de220
add esp, 0x14
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call sub.MFC42u.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x30]
mov byte [esp + 0x4c], 5
call sub.MFC42u.DLL_CByteArray::CByteArray
lea ecx, [esp + 0x10]
mov byte [esp + 0x4c], 0
call fcn.10078300
lea ecx, [esp + 0x18]
mov dword [esp + 0x4c], 0xffffffff
call fcn.10078300
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x40
ret