Function at 0x100845b0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x244
mov eax, dword [0x101e5aec]
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 + 0x254]
push edi
mov edi, dword [esp + 0x25c]
push 0x1ff
lea ecx, [esp + 0x55]
push 0
push ecx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], eax
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x5c], 0
call fcn.1012ea60
add esp, 0xc
mov al, al
mov dl, dl
xor eax, eax
mov dword [esp + 0x10], eax
cmp dword [0x101d08c0], 0xffffa7c6
mov dword [esp + 0x18], eax
cmp dword [0x101d08d4], 0xfffffede
cmp dword [esp + 0x26c], eax
jne 0x100848ee
push edi
lea edx, [esp + 0x54]
push edx
push esi
call fcn.1005fa80
add esp, 0xc
cmp dword [0x101d08cc], 0xffffb203
mov edi, dword [esp + 0x1c]
push ebx
push edi
push ebp
lea eax, [esp + 0x5c]
push eax
push esi
call fcn.100737c0
add esp, 0x14
test eax, eax
jne 0x10084d31
cmp dword [esp + 0x270], eax
jne 0x100847b7
mov byte [esp + 0x14], 0x72
mov byte [esp + 0x15], 0x62
mov byte [esp + 0x16], al
cmp dword [0x101d08b8], 0x2d0b
push 0x40
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x58]
push edx
call fcn.1012f4a0
add esp, 0xc
mov edi, eax
push eax
pop eax
test edi, edi
jne 0x10084729
mov al, 0xce
mov byte [esp + 0x34], al
mov byte [esp + 0x35], 0xde
mov byte [esp + 0x36], 0xb7
mov byte [esp + 0x37], 0xa8
mov byte [esp + 0x38], 0xb4
mov byte [esp + 0x39], 0xf2
mov byte [esp + 0x3a], 0xbf
mov byte [esp + 0x3b], 0xaa
mov byte [esp + 0x3c], al
mov byte [esp + 0x3d], 0xc4
mov byte [esp + 0x3e], 0xbc
mov byte [esp + 0x3f], 0xfe
mov byte [esp + 0x40], 0x3c
mov byte [esp + 0x41], 0x25
mov byte [esp + 0x42], 0x73
mov byte [esp + 0x43], 0x3e
mov byte [esp + 0x44], 0
mov ah, ah
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x38]
push ecx
push esi
call fcn.100583b0
add esp, 0xc
push edx
pop edx
xor eax, eax
jmp 0x10084d36
push 2
push 0
push edi
call fcn.1012f41b
add esp, 0xc
mov ah, ah
push edi
call fcn.1012f326
add esp, 4
mov dword [esp + 0x10], eax
cmp dword [0x101d08b8], 0x2d0b
push 0
push 0
push edi
call fcn.1012f41b
add esp, 0xc
cmp dword [0x101d08b4], 0x5441
mov edx, dword [esp + 0x10]
push edx
call fcn.1012de1c
mov esi, eax
add esp, 4
mov dword [esp + 0x18], esi
mov al, al
test esi, esi
push edi
jne 0x10084799
call fcn.1012ee5b
add esp, 4
cmp dword [0x101d08cc], 0xffffb203
xor eax, eax
jmp 0x10084d36
mov eax, dword [esp + 0x14]
push eax
push 1
push esi
call fcn.1012f173
add esp, 0x10
push edx
pop edx
push edi
call fcn.1012ee5b
add esp, 4
nop
jmp 0x100847fd
mov ecx, dword [ebx]
push ecx
call fcn.1012de1c
add esp, 4
mov dword [esp + 0x18], eax
push ecx
pop ecx
test eax, eax
je 0x10084722
mov edx, dword [ebx]
mov ecx, dword [edi]
push edx
push ecx
push eax
call fcn.1012fbf0
add esp, 0xc
cmp dword [0x101d08d4], 0xfffffede
mov edx, dword [ebx]
mov dword [esp + 0x10], edx
cmp dword [0x101d08bc], 0x7693
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
push eax
push esi
call fcn.1005dc10
add esp, 8
test eax, eax
je 0x100848dd
mov edi, dword [esp + 0x20]
mov edx, dword [esp + 0x10]
lea ecx, [edi + 0x2617]
push ecx
push edx
push esi
call fcn.1005d9f0
add esp, 0xc
mov dword [esp + 0x10], eax
mov dh, dh
cmp dword [esp + 0x10], 0
jne 0x100848d3
mov al, 0xdc
mov byte [esp + 0x34], 0xcd
mov byte [esp + 0x35], 0xbc
mov byte [esp + 0x36], 0xc6
mov byte [esp + 0x37], 0xac
mov byte [esp + 0x38], 0x5b
mov byte [esp + 0x39], 0x25
mov byte [esp + 0x3a], 0x73
mov byte [esp + 0x3b], 0x5d
mov byte [esp + 0x3c], 0xbd
mov byte [esp + 0x3d], 0xe2
mov byte [esp + 0x3e], 0xc3
mov byte [esp + 0x3f], al
mov byte [esp + 0x40], 0xca
mov byte [esp + 0x41], 0xa7
mov byte [esp + 0x42], 0xb0
mov byte [esp + 0x43], al
mov byte [esp + 0x44], 0
cmp dword [0x101d08d4], 0xfffffede
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x38]
push ecx
push edi
call fcn.100583b0
add esp, 0xc
cmp dword [0x101d08c8], 0xffff89b0
push esi
call fcn.1012dedf
add esp, 4
cmp dword [0x101d08d4], 0xfffffede
xor eax, eax
jmp 0x10084d36
lea edx, [esi + 8]
xchg ebx, eax
xchg ebx, eax
jmp 0x100849e2
mov edx, esi
cmp dword [0x101d08b0], 0x2f18
jmp 0x100849e2
mov dword [esp + 0x14], eax
mov dl, dl
mov byte [esp + 0x48], 0x25
mov byte [esp + 0x49], 0x64
mov byte [esp + 0x4a], 0x2c
mov byte [esp + 0x4b], 0x25
mov byte [esp + 0x4c], 0x64
mov byte [esp + 0x4d], al
mov al, al
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x50]
push ecx
push edi
call fcn.101302dd
add esp, 0x10
cmp dword [0x101d08c8], 0x764f
mov edx, dword [esp + 0x14]
push 4
push edx
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
je 0x100849dc
mov al, 0xd6
mov cl, 0xb5
mov byte [esp + 0x34], al
mov byte [esp + 0x35], 0xb8
mov byte [esp + 0x36], 0xd5
mov byte [esp + 0x37], 0xeb
mov byte [esp + 0x38], 0x3a
mov byte [esp + 0x39], 0x25
mov byte [esp + 0x3a], 0x64
mov byte [esp + 0x3b], 0xca
mov byte [esp + 0x3c], 0xc7
mov byte [esp + 0x3d], 0xce
mov byte [esp + 0x3e], 0xde
mov byte [esp + 0x3f], 0xd0
mov byte [esp + 0x40], 0xa7
mov byte [esp + 0x41], cl
mov byte [esp + 0x42], 0xc4
mov byte [esp + 0x43], cl
mov byte [esp + 0x44], 0xd8
mov byte [esp + 0x45], al
mov byte [esp + 0x46], 0xb7
mov byte [esp + 0x47], 0
cmp dword [0x101d08bc], 0x7693
mov eax, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x38]
push ecx
push esi
call fcn.100583b0
add esp, 0xc
cmp dword [0x101d08c8], 0xffff89b0
xor eax, eax
jmp 0x10084d36
mov edx, dword [esp + 0x14]
mov edi, edi
mov edx, edx
cmp dword [0x101d08b0], 0xffffd0e7
cmp dword [esp + 0x10], 0x36
jae 0x10084a15
cmp dword [esp + 0x26c], 0
jne 0x10084a0e
mov edx, dword [esp + 0x18]
push edx
call fcn.1012dedf
add esp, 4
mov cl, cl
xor eax, eax
jmp 0x10084d36
push edx
pop edx
lea eax, [edx + 0xe]
mov ch, ch
cmp word [edx], 0x4d42
je 0x10084a4b
cmp dword [esp + 0x26c], 0
jne 0x10084a44
mov eax, dword [esp + 0x18]
push eax
call fcn.1012dedf
add esp, 4
cmp dword [0x101d08b4], 0x5441
xor eax, eax
jmp 0x10084d36
mov ecx, 0xa
mov esi, eax
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
cmp dword [0x101d08bc], 0xffff896c
mov dword [esp + 0x2c], 1
cmp dword [0x101d08b8], 0x2d0b
xor esi, esi
cmp dword [ebp + 8], esi
jge 0x10084a91
mov dword [esp + 0x2c], esi
mov ebp, ebp
mov ecx, dword [ebp + 8]
neg ecx
mov dword [ebp + 8], ecx
cmp dword [0x101d08c4], 0xab9
cmp word [eax + 0xe], 0x18
je 0x10084b2c
mov al, 0xd6
mov cl, 0xbb
mov byte [esp + 0x34], al
mov byte [esp + 0x36], al
mov byte [esp + 0x39], al
mov al, 0xce
mov byte [esp + 0x35], cl
mov byte [esp + 0x37], 0xa7
mov byte [esp + 0x38], 0xb3
mov byte [esp + 0x3a], 0x32
mov byte [esp + 0x3b], 0x34
mov byte [esp + 0x3c], al
mov byte [esp + 0x3d], cl
mov byte [esp + 0x3e], 0xc9
mov byte [esp + 0x3f], 0xab
mov byte [esp + 0x40], al
mov byte [esp + 0x41], cl
mov byte [esp + 0x42], 0xcd
mov byte [esp + 0x43], 0xbc
mov byte [esp + 0x44], 0
mov al, al
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x34]
push edx
push eax
call fcn.100583b0
add esp, 8
mov ah, ah
cmp dword [esp + 0x26c], esi
jne 0x10084b25
mov ecx, dword [esp + 0x18]
push ecx
call fcn.1012dedf
add esp, 4
cmp dword [0x101d08d0], 0x4c94
xor eax, eax
jmp 0x10084d36
cmp dword [eax + 0x10], esi
je 0x10084b50
cmp dword [esp + 0x26c], esi
jne 0x10084b49
mov edx, dword [esp + 0x18]
push edx
call fcn.1012dedf
add esp, 4
mov esi, esi
xor eax, eax
jmp 0x10084d36
mov eax, dword [ebp + 4]
lea ecx, [eax*4 + 3]
and ecx, 0xfffffffc
mov dword [ebx], ecx
mov eax, eax
mov eax, dword [edx + 0xa]
cmp eax, dword [esp + 0x10]
jbe 0x10084b91
cmp dword [esp + 0x26c], esi
jne 0x10084b8a
mov edx, dword [esp + 0x18]
push edx
call fcn.1012dedf
add esp, 4
cmp dword [0x101d08d4], 0xfffffede
xor eax, eax
jmp 0x10084d36
add eax, edx
mov dword [esp + 0x24], eax
mov ah, ah
mov eax, dword [ebp + 4]
add eax, 1
lea edi, [eax + eax*2]
and edi, 0xfffffffc
cmp dword [0x101d08c8], 0xffff89b0
mov eax, dword [ebx]
imul eax, dword [ebp + 8]
push eax
call fcn.1012de1c
mov ecx, dword [esp + 0x20]
add esp, 4
mov dword [ecx], eax
xchg ebx, eax
xchg ebx, eax
mov eax, dword [ecx]
cmp eax, esi
jne 0x10084c5e
mov byte [esp + 0x34], 0xc4
mov byte [esp + 0x35], 0xda
mov byte [esp + 0x36], 0xb4
mov byte [esp + 0x37], 0xe6
mov byte [esp + 0x38], 0xb7
mov byte [esp + 0x39], 0xd6
mov byte [esp + 0x3a], 0xc5
mov byte [esp + 0x3b], 0xe4
mov byte [esp + 0x3c], 0xca
mov byte [esp + 0x3d], 0xa7
mov byte [esp + 0x3e], 0xb0
mov byte [esp + 0x3f], 0xdc
mov byte [esp + 0x40], 0
cmp dword [0x101d08d4], 0x121
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x34]
push ecx
push edx
call fcn.100583b0
add esp, 8
cmp dword [0x101d08c0], 0xffffa7c6
cmp dword [esp + 0x26c], esi
jne 0x10084c57
mov eax, dword [esp + 0x18]
push eax
call fcn.1012dedf
add esp, 4
cmp dword [0x101d08d0], 0x4c94
xor eax, eax
jmp 0x10084d36
mov edx, eax
mov ebp, ebp
cmp dword [ebp + 8], esi
mov dword [esp + 0x28], esi
jle 0x10084ce8
jmp 0x10084c70
xor esi, esi
cmp dword [ebp + 4], esi
jle 0x10084cc2
mov ecx, dword [esp + 0x24]
lea eax, [edx + 2]
add ecx, 2
movzx ebx, byte [ecx - 2]
mov byte [eax - 2], bl
cmp dword [0x101d08b8], 0xffffd2f4
movzx ebx, byte [ecx - 1]
mov byte [eax - 1], bl
mov bl, bl
movzx ebx, byte [ecx]
mov byte [eax], bl
mov edx, edx
mov byte [eax + 1], 0
cmp dword [0x101d08d0], 0x4c94
add esi, 1
add ecx, 3
add eax, 4
cmp esi, dword [ebp + 4]
jl 0x10084c81
mov ebx, dword [esp + 0x30]
add edx, dword [ebx]
mov bl, bl
add dword [esp + 0x24], edi
cmp dword [0x101d08c4], 0xfffff546
mov eax, dword [esp + 0x28]
add eax, 1
cmp eax, dword [ebp + 8]
mov dword [esp + 0x28], eax
jl 0x10084c70
mov ecx, dword [esp + 0x1c]
cmp dword [esp + 0x2c], 0
je 0x10084cfd
mov eax, dword [ebp + 8]
mov edi, dword [ebx]
mov ecx, dword [ecx]
call fcn.10069f00
mov edi, edi
cmp dword [esp + 0x26c], 0
jne 0x10084d31
mov ecx, dword [esp + 0x18]
push ecx
call fcn.1012dedf
add esp, 4
mov ebx, ebx
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
push ebx
push edx
push ebp
lea eax, [esp + 0x5c]
push eax
push ecx
call fcn.10084380
add esp, 0x14
push eax
pop eax
mov eax, 1
mov ecx, dword [esp + 0x250]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1012e3ba
add esp, 0x244
ret