Function at 0x1006fe30
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.10100550
xor eax, eax
add esp, 0xc
cmp dword [esp + 0x26c], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
jne 0x100700b8
push esi
lea edx, [esp + 0x54]
push edx
push edi
call fcn.10044420
mov esi, dword [esp + 0x28]
push ebx
push esi
push ebp
lea eax, [esp + 0x68]
push eax
push edi
call fcn.10055ae0
add esp, 0x20
test eax, eax
jne 0x10070406
cmp dword [esp + 0x270], eax
jne 0x1006ffd1
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.10101259
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x1006ff74
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.1003e940
add esp, 0xc
xor eax, eax
jmp 0x1007040b
push 2
push 0
push esi
call fcn.101011d4
push esi
call fcn.101010df
push 0
push 0
push esi
mov dword [esp + 0x30], eax
call fcn.101011d4
mov edx, dword [esp + 0x30]
push edx
call fcn.100ff548
mov edi, eax
add esp, 0x20
test edi, edi
mov dword [esp + 0x10], edi
push esi
jne 0x1006ffb9
call fcn.10100c14
add esp, 4
xor eax, eax
jmp 0x1007040b
mov eax, dword [esp + 0x18]
push eax
push 1
push edi
call fcn.10100f2c
push esi
call fcn.10100c14
add esp, 0x14
jmp 0x1006fffd
mov ecx, dword [ebx]
push ecx
call fcn.100ff548
add esp, 4
test eax, eax
mov dword [esp + 0x10], eax
je 0x1006ff6d
mov edx, dword [ebx]
mov ecx, dword [esi]
push edx
push ecx
push eax
call fcn.10101870
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.10042cc0
add esp, 8
test eax, eax
je 0x100700b1
mov esi, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
lea ecx, [esi + 0x2613]
push ecx
push edx
push edi
call fcn.10042aa0
add esp, 0xc
test eax, eax
mov dword [esp + 0x14], eax
jne 0x100700a9
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.1003e940
push edi
call fcn.100ff60b
add esp, 0x10
xor eax, eax
jmp 0x1007040b
lea eax, [edi + 8]
jmp 0x10070184
mov eax, edi
jmp 0x10070184
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.10101de5
mov edx, dword [esp + 0x28]
add esp, 0x10
push 4
push edx
call dword [sym.imp.KERNEL32.DLL_IsBadReadPtr]
test eax, eax
je 0x10070180
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.1003e940
add esp, 0xc
xor eax, eax
jmp 0x1007040b
mov eax, dword [esp + 0x18]
cmp dword [esp + 0x14], 0x36
jae 0x100701a9
cmp dword [esp + 0x26c], 0
jne 0x100701a2
mov edx, dword [esp + 0x10]
push edx
call fcn.100ff60b
add esp, 4
xor eax, eax
jmp 0x1007040b
cmp word [eax], 0x4d42
lea edx, [eax + 0xe]
je 0x100701d1
cmp dword [esp + 0x26c], 0
jne 0x100701a2
mov eax, dword [esp + 0x10]
push eax
call fcn.100ff60b
add esp, 4
xor eax, eax
jmp 0x1007040b
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 0x100701f6
neg ecx
mov dword [esp + 0x2c], esi
mov dword [ebp + 8], ecx
cmp word [edx + 0xe], 0x18
je 0x10070287
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.1003e940
add esp, 8
cmp dword [esp + 0x26c], esi
jne 0x100701a2
mov eax, dword [esp + 0x10]
push eax
call fcn.100ff60b
add esp, 4
xor eax, eax
jmp 0x1007040b
cmp dword [edx + 0x10], esi
jne 0x10070347
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 0x100702c9
cmp dword [esp + 0x26c], esi
jne 0x100701a2
mov edx, dword [esp + 0x10]
push edx
call fcn.100ff60b
add esp, 4
xor eax, eax
jmp 0x1007040b
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.100ff548
mov ecx, dword [esp + 0x20]
add esp, 4
cmp eax, esi
mov dword [ecx], eax
jne 0x10070368
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.1003e940
add esp, 8
cmp dword [esp + 0x26c], esi
jne 0x100701a2
mov ecx, dword [esp + 0x10]
push ecx
call fcn.100ff60b
add esp, 4
xor eax, eax
jmp 0x1007040b
cmp dword [ebp + 8], esi
mov edx, eax
mov dword [esp + 0x28], esi
jle 0x100703c3
xor esi, esi
cmp dword [ebp + 4], esi
jle 0x100703ad
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 0x10070384
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 0x10070373
cmp dword [esp + 0x2c], 0
je 0x100703da
mov edx, dword [esp + 0x1c]
mov eax, dword [ebp + 8]
mov edi, dword [ebx]
mov ecx, dword [edx]
call fcn.1004d2e0
cmp dword [esp + 0x26c], 0
jne 0x10070406
mov eax, dword [esp + 0x10]
push eax
call fcn.100ff60b
mov ecx, dword [esp + 0x20]
push ebx
push ecx
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0x5c]
push ebp
push edx
call fcn.1006fa60
add esp, 0x14
mov eax, 1
mov ecx, dword [esp + 0x250]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100ffae6
add esp, 0x244
ret