Function at 0x10070c70
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x244
mov eax, dword [0x101b734c]
xor eax, esp
mov dword [esp + 0x240], eax
mov eax, dword [esp + 0x254]
push ebx
mov ebx, dword [esp + 0x25c]
push ebp
mov ebp, dword [esp + 0x258]
push esi
mov esi, dword [esp + 0x258]
push edi
mov edi, dword [esp + 0x258]
push 0x1ff
lea ecx, [esp + 0x55]
push 0
push ecx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], eax
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x5c], 0
call fcn.10100e30
xor eax, eax
add esp, 0xc
cmp dword [esp + 0x26c], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
jne 0x10070ef8
push esi
lea edx, [esp + 0x54]
push edx
push edi
call fcn.10044e30
mov esi, dword [esp + 0x28]
push ebx
push esi
push ebp
lea eax, [esp + 0x68]
push eax
push edi
call fcn.10056590
add esp, 0x20
test eax, eax
jne 0x10071246
cmp dword [esp + 0x270], eax
jne 0x10070e11
push 0x40
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x58]
push edx
mov byte [esp + 0x24], 0x72
mov byte [esp + 0x25], 0x62
mov byte [esp + 0x26], al
call fcn.10101b39
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x10070db4
mov al, 0xce
mov byte [esp + 0x34], al
mov byte [esp + 0x3c], al
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x38]
push ecx
push edi
mov byte [esp + 0x41], 0xde
mov byte [esp + 0x42], 0xb7
mov byte [esp + 0x43], 0xa8
mov byte [esp + 0x44], 0xb4
mov byte [esp + 0x45], 0xf2
mov byte [esp + 0x46], 0xbf
mov byte [esp + 0x47], 0xaa
mov byte [esp + 0x49], 0xc4
mov byte [esp + 0x4a], 0xbc
mov byte [esp + 0x4b], 0xfe
mov byte [esp + 0x4c], 0x3c
mov byte [esp + 0x4d], 0x25
mov byte [esp + 0x4e], 0x73
mov byte [esp + 0x4f], 0x3e
mov byte [esp + 0x50], 0
call fcn.1003f300
add esp, 0xc
xor eax, eax
jmp 0x1007124b
push 2
push 0
push esi
call fcn.10101ab4
push esi
call fcn.101019bf
push 0
push 0
push esi
mov dword [esp + 0x30], eax
call fcn.10101ab4
mov edx, dword [esp + 0x30]
push edx
call fcn.100ffe35
mov edi, eax
add esp, 0x20
test edi, edi
mov dword [esp + 0x10], edi
push esi
jne 0x10070df9
call fcn.101014f4
add esp, 4
xor eax, eax
jmp 0x1007124b
mov eax, dword [esp + 0x18]
push eax
push 1
push edi
call fcn.1010180c
push esi
call fcn.101014f4
add esp, 0x14
jmp 0x10070e3d
mov ecx, dword [ebx]
push ecx
call fcn.100ffe35
add esp, 4
test eax, eax
mov dword [esp + 0x10], eax
je 0x10070dad
mov edx, dword [ebx]
mov ecx, dword [esi]
push edx
push ecx
push eax
call fcn.10102150
mov edx, dword [ebx]
mov edi, dword [esp + 0x1c]
add esp, 0xc
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x14]
push eax
push edi
call fcn.100436d0
add esp, 8
test eax, eax
je 0x10070ef1
mov esi, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
lea ecx, [esi + 0x2617]
push ecx
push edx
push edi
call fcn.100434b0
add esp, 0xc
test eax, eax
mov dword [esp + 0x14], eax
jne 0x10070ee9
mov al, 0xdc
mov byte [esp + 0x3f], al
mov byte [esp + 0x43], al
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x38]
push ecx
push esi
mov byte [esp + 0x40], 0xcd
mov byte [esp + 0x41], 0xbc
mov byte [esp + 0x42], 0xc6
mov byte [esp + 0x43], 0xac
mov byte [esp + 0x44], 0x5b
mov byte [esp + 0x45], 0x25
mov byte [esp + 0x46], 0x73
mov byte [esp + 0x47], 0x5d
mov byte [esp + 0x48], 0xbd
mov byte [esp + 0x49], 0xe2
mov byte [esp + 0x4a], 0xc3
mov byte [esp + 0x4c], 0xca
mov byte [esp + 0x4d], 0xa7
mov byte [esp + 0x4e], 0xb0
mov byte [esp + 0x50], 0
call fcn.1003f300
push edi
call fcn.100ffef8
add esp, 0x10
xor eax, eax
jmp 0x1007124b
lea eax, [edi + 8]
jmp 0x10070fc4
mov eax, edi
jmp 0x10070fc4
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x1c], eax
mov byte [esp + 0x51], al
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x50]
push ecx
push esi
mov byte [esp + 0x58], 0x25
mov byte [esp + 0x59], 0x64
mov byte [esp + 0x5a], 0x2c
mov byte [esp + 0x5b], 0x25
mov byte [esp + 0x5c], 0x64
call fcn.101026c5
mov edx, dword [esp + 0x28]
add esp, 0x10
push 4
push edx
call dword [sym.imp.KERNEL32.DLL_IsBadReadPtr]
test eax, eax
je 0x10070fc0
mov al, 0xd6
mov cl, 0xb5
mov byte [esp + 0x34], al
mov byte [esp + 0x45], al
mov eax, dword [esp + 0x18]
mov byte [esp + 0x41], cl
mov byte [esp + 0x43], cl
push eax
lea ecx, [esp + 0x38]
push ecx
push edi
mov byte [esp + 0x41], 0xb8
mov byte [esp + 0x42], 0xd5
mov byte [esp + 0x43], 0xeb
mov byte [esp + 0x44], 0x3a
mov byte [esp + 0x45], 0x25
mov byte [esp + 0x46], 0x64
mov byte [esp + 0x47], 0xca
mov byte [esp + 0x48], 0xc7
mov byte [esp + 0x49], 0xce
mov byte [esp + 0x4a], 0xde
mov byte [esp + 0x4b], 0xd0
mov byte [esp + 0x4c], 0xa7
mov byte [esp + 0x4e], 0xc4
mov byte [esp + 0x50], 0xd8
mov byte [esp + 0x52], 0xb7
mov byte [esp + 0x53], 0
call fcn.1003f300
add esp, 0xc
xor eax, eax
jmp 0x1007124b
mov eax, dword [esp + 0x18]
cmp dword [esp + 0x14], 0x36
jae 0x10070fe9
cmp dword [esp + 0x26c], 0
jne 0x10070fe2
mov edx, dword [esp + 0x10]
push edx
call fcn.100ffef8
add esp, 4
xor eax, eax
jmp 0x1007124b
cmp word [eax], 0x4d42
lea edx, [eax + 0xe]
je 0x10071011
cmp dword [esp + 0x26c], 0
jne 0x10070fe2
mov eax, dword [esp + 0x10]
push eax
call fcn.100ffef8
add esp, 4
xor eax, eax
jmp 0x1007124b
mov ecx, 0xa
mov esi, edx
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 8]
xor esi, esi
cmp ecx, esi
mov dword [esp + 0x2c], 1
jge 0x10071036
neg ecx
mov dword [esp + 0x2c], esi
mov dword [ebp + 8], ecx
cmp word [edx + 0xe], 0x18
je 0x100710c7
mov edx, dword [esp + 0x20]
mov cl, 0xbb
mov al, 0xd6
mov byte [esp + 0x35], cl
mov byte [esp + 0x3d], cl
mov byte [esp + 0x41], cl
lea ecx, [esp + 0x34]
mov byte [esp + 0x34], al
mov byte [esp + 0x36], al
mov byte [esp + 0x39], al
mov al, 0xce
push ecx
push edx
mov byte [esp + 0x3f], 0xa7
mov byte [esp + 0x40], 0xb3
mov byte [esp + 0x42], 0x32
mov byte [esp + 0x43], 0x34
mov byte [esp + 0x44], al
mov byte [esp + 0x46], 0xc9
mov byte [esp + 0x47], 0xab
mov byte [esp + 0x48], al
mov byte [esp + 0x4a], 0xcd
mov byte [esp + 0x4b], 0xbc
mov byte [esp + 0x4c], 0
call fcn.1003f300
add esp, 8
cmp dword [esp + 0x26c], esi
jne 0x10070fe2
mov eax, dword [esp + 0x10]
push eax
call fcn.100ffef8
add esp, 4
xor eax, eax
jmp 0x1007124b
cmp dword [edx + 0x10], esi
jne 0x10071187
mov ecx, dword [ebp + 4]
lea ecx, [ecx*4 + 3]
and ecx, 0xfffffffc
mov dword [ebx], ecx
mov edx, dword [eax + 0xa]
cmp edx, dword [esp + 0x14]
jbe 0x10071109
cmp dword [esp + 0x26c], esi
jne 0x10070fe2
mov edx, dword [esp + 0x10]
push edx
call fcn.100ffef8
add esp, 4
xor eax, eax
jmp 0x1007124b
add edx, eax
mov eax, dword [ebp + 4]
add eax, 1
lea edi, [eax + eax*2]
mov eax, dword [ebp + 8]
imul eax, ecx
push eax
mov dword [esp + 0x28], edx
and edi, 0xfffffffc
call fcn.100ffe35
mov ecx, dword [esp + 0x20]
add esp, 4
cmp eax, esi
mov dword [ecx], eax
jne 0x100711a8
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x34]
push edx
push eax
mov byte [esp + 0x3c], 0xc4
mov byte [esp + 0x3d], 0xda
mov byte [esp + 0x3e], 0xb4
mov byte [esp + 0x3f], 0xe6
mov byte [esp + 0x40], 0xb7
mov byte [esp + 0x41], 0xd6
mov byte [esp + 0x42], 0xc5
mov byte [esp + 0x43], 0xe4
mov byte [esp + 0x44], 0xca
mov byte [esp + 0x45], 0xa7
mov byte [esp + 0x46], 0xb0
mov byte [esp + 0x47], 0xdc
mov byte [esp + 0x48], 0
call fcn.1003f300
add esp, 8
cmp dword [esp + 0x26c], esi
jne 0x10070fe2
mov ecx, dword [esp + 0x10]
push ecx
call fcn.100ffef8
add esp, 4
xor eax, eax
jmp 0x1007124b
cmp dword [ebp + 8], esi
mov edx, eax
mov dword [esp + 0x28], esi
jle 0x10071203
xor esi, esi
cmp dword [ebp + 4], esi
jle 0x100711ed
mov ecx, dword [esp + 0x24]
lea eax, [edx + 2]
add ecx, 2
movzx ebx, byte [ecx - 2]
mov byte [eax - 2], bl
movzx ebx, byte [ecx - 1]
mov byte [eax - 1], bl
movzx ebx, byte [ecx]
mov byte [eax], bl
mov byte [eax + 1], 0
add esi, 1
add ecx, 3
add eax, 4
cmp esi, dword [ebp + 4]
jl 0x100711c4
mov ebx, dword [esp + 0x30]
mov eax, dword [esp + 0x28]
add edx, dword [ebx]
add dword [esp + 0x24], edi
add eax, 1
cmp eax, dword [ebp + 8]
mov dword [esp + 0x28], eax
jl 0x100711b3
cmp dword [esp + 0x2c], 0
je 0x1007121a
mov edx, dword [esp + 0x1c]
mov eax, dword [ebp + 8]
mov edi, dword [ebx]
mov ecx, dword [edx]
call fcn.1004dd60
cmp dword [esp + 0x26c], 0
jne 0x10071246
mov eax, dword [esp + 0x10]
push eax
call fcn.100ffef8
mov ecx, dword [esp + 0x20]
push ebx
push ecx
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0x5c]
push ebp
push edx
call fcn.100708a0
add esp, 0x14
mov eax, 1
mov ecx, dword [esp + 0x250]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.101003d3
add esp, 0x244
ret