Function at 0x1006fdd0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x244
mov eax, dword [0x101b7324]
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.101004d0
xor eax, eax
add esp, 0xc
cmp dword [esp + 0x26c], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
jne 0x10070058
push esi
lea edx, [esp + 0x54]
push edx
push edi
call fcn.100443f0
mov esi, dword [esp + 0x28]
push ebx
push esi
push ebp
lea eax, [esp + 0x68]
push eax
push edi
call fcn.10055a50
add esp, 0x20
test eax, eax
jne 0x100703a6
cmp dword [esp + 0x270], eax
jne 0x1006ff71
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.101011d9
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x1006ff14
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.1003e910
add esp, 0xc
xor eax, eax
jmp 0x100703ab
push 2
push 0
push esi
call fcn.10101154
push esi
call fcn.1010105f
push 0
push 0
push esi
mov dword [esp + 0x30], eax
call fcn.10101154
mov edx, dword [esp + 0x30]
push edx
call fcn.100ff4c8
mov edi, eax
add esp, 0x20
test edi, edi
mov dword [esp + 0x10], edi
push esi
jne 0x1006ff59
call fcn.10100b94
add esp, 4
xor eax, eax
jmp 0x100703ab
mov eax, dword [esp + 0x18]
push eax
push 1
push edi
call fcn.10100eac
push esi
call fcn.10100b94
add esp, 0x14
jmp 0x1006ff9d
mov ecx, dword [ebx]
push ecx
call fcn.100ff4c8
add esp, 4
test eax, eax
mov dword [esp + 0x10], eax
je 0x1006ff0d
mov edx, dword [ebx]
mov ecx, dword [esi]
push edx
push ecx
push eax
call fcn.101017f0
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.10042c90
add esp, 8
test eax, eax
je 0x10070051
mov esi, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
lea ecx, [esi + 0x2613]
push ecx
push edx
push edi
call fcn.10042a70
add esp, 0xc
test eax, eax
mov dword [esp + 0x14], eax
jne 0x10070049
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.1003e910
push edi
call fcn.100ff58b
add esp, 0x10
xor eax, eax
jmp 0x100703ab
lea eax, [edi + 8]
jmp 0x10070124
mov eax, edi
jmp 0x10070124
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.10101d65
mov edx, dword [esp + 0x28]
add esp, 0x10
push 4
push edx
call dword [sym.imp.KERNEL32.DLL_IsBadReadPtr]
test eax, eax
je 0x10070120
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.1003e910
add esp, 0xc
xor eax, eax
jmp 0x100703ab
mov eax, dword [esp + 0x18]
cmp dword [esp + 0x14], 0x36
jae 0x10070149
cmp dword [esp + 0x26c], 0
jne 0x10070142
mov edx, dword [esp + 0x10]
push edx
call fcn.100ff58b
add esp, 4
xor eax, eax
jmp 0x100703ab
cmp word [eax], 0x4d42
lea edx, [eax + 0xe]
je 0x10070171
cmp dword [esp + 0x26c], 0
jne 0x10070142
mov eax, dword [esp + 0x10]
push eax
call fcn.100ff58b
add esp, 4
xor eax, eax
jmp 0x100703ab
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 0x10070196
neg ecx
mov dword [esp + 0x2c], esi
mov dword [ebp + 8], ecx
cmp word [edx + 0xe], 0x18
je 0x10070227
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.1003e910
add esp, 8
cmp dword [esp + 0x26c], esi
jne 0x10070142
mov eax, dword [esp + 0x10]
push eax
call fcn.100ff58b
add esp, 4
xor eax, eax
jmp 0x100703ab
cmp dword [edx + 0x10], esi
jne 0x100702e7
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 0x10070269
cmp dword [esp + 0x26c], esi
jne 0x10070142
mov edx, dword [esp + 0x10]
push edx
call fcn.100ff58b
add esp, 4
xor eax, eax
jmp 0x100703ab
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.100ff4c8
mov ecx, dword [esp + 0x20]
add esp, 4
cmp eax, esi
mov dword [ecx], eax
jne 0x10070308
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.1003e910
add esp, 8
cmp dword [esp + 0x26c], esi
jne 0x10070142
mov ecx, dword [esp + 0x10]
push ecx
call fcn.100ff58b
add esp, 4
xor eax, eax
jmp 0x100703ab
cmp dword [ebp + 8], esi
mov edx, eax
mov dword [esp + 0x28], esi
jle 0x10070363
xor esi, esi
cmp dword [ebp + 4], esi
jle 0x1007034d
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 0x10070324
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 0x10070313
cmp dword [esp + 0x2c], 0
je 0x1007037a
mov edx, dword [esp + 0x1c]
mov eax, dword [ebp + 8]
mov edi, dword [ebx]
mov ecx, dword [edx]
call fcn.1004d2b0
cmp dword [esp + 0x26c], 0
jne 0x100703a6
mov eax, dword [esp + 0x10]
push eax
call fcn.100ff58b
mov ecx, dword [esp + 0x20]
push ebx
push ecx
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0x5c]
push ebp
push edx
call fcn.1006fa00
add esp, 0x14
mov eax, 1
mov ecx, dword [esp + 0x250]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100ffa66
add esp, 0x244
ret