Function at 0x1004f760
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
mov dword [esp + 0x20], edx
push edi
mov eax, dword [esi + 0x10]
test eax, eax
je 0x1004fa18
push eax
call fcn.100bbe72
mov edx, dword [esi + 0x10]
xor edi, edi
add esp, 4
movzx ecx, al
cmp eax, 0xffffffff
cmove ecx, edi
movzx ecx, cl
mov dword [esp + 0x28], ecx
test edx, edx
je 0x1004fa37
push edx
call fcn.100bbe72
mov ecx, dword [esi + 0x10]
add esp, 4
cmp eax, 0xffffffff
movzx edx, al
cmove edx, edi
movzx edi, dl
mov bl, dl
mov dword [esp + 0x14], edx
mov ebp, edi
test ecx, ecx
je 0x1004fa55
push ecx
call fcn.100bbe72
mov edx, dword [esi + 0x10]
xor edi, edi
add esp, 4
movzx ecx, al
cmp eax, 0xffffffff
mov byte [esp + 0x14], bl
cmove ecx, edi
mov edi, ebp
movzx ecx, cl
mov dword [esp + 0x30], ecx
test edx, edx
je 0x1004fa74
push edx
call fcn.100bbe72
mov ecx, eax
mov byte [esp + 0x18], bl
xor eax, eax
add esp, 4
cmp ecx, 0xffffffff
cmove ecx, eax
mov eax, dword [esi + 0x10]
mov dword [esp + 0x48], ecx
test eax, eax
je 0x1004fa87
push eax
call fcn.100bbe72
mov ecx, dword [esi + 0x10]
xor edx, edx
add esp, 4
mov byte [esp + 0x14], bl
cmp eax, 0xffffffff
cmove eax, edx
shl eax, 8
add eax, dword [esp + 0x48]
mov dword [esp + 0x18], eax
test ecx, ecx
je 0x1004faa3
push ecx
call fcn.100bbe72
mov ecx, eax
mov byte [esp + 0x18], bl
xor eax, eax
add esp, 4
cmp ecx, 0xffffffff
cmove ecx, eax
mov eax, dword [esi + 0x10]
mov dword [esp + 0x48], ecx
test eax, eax
je 0x1004faba
push eax
call fcn.100bbe72
mov ecx, dword [esi + 0x10]
xor edx, edx
add esp, 4
mov byte [esp + 0x14], bl
cmp eax, 0xffffffff
cmove eax, edx
shl eax, 8
add eax, dword [esp + 0x48]
mov dword [esp + 0x34], eax
test ecx, ecx
je 0x1004fae0
push ecx
call fcn.100bbe72
mov edx, dword [esi + 0x10]
xor edi, edi
add esp, 4
movzx ecx, al
cmp eax, 0xffffffff
mov byte [esp + 0x14], bl
cmove ecx, edi
mov edi, ebp
movzx ecx, cl
mov dword [esp + 0x2c], ecx
test edx, edx
je 0x1004fb05
push edx
call fcn.100bbe72
mov eax, dword [esi + 0x10]
add esp, 4
mov byte [esp + 0x14], bl
test eax, eax
je 0x1004fb17
push eax
call fcn.100bbe72
mov eax, dword [esi + 0x10]
add esp, 4
mov byte [esp + 0x14], bl
test eax, eax
je 0x1004fb29
push eax
call fcn.100bbe72
mov eax, dword [esi + 0x10]
add esp, 4
mov byte [esp + 0x14], bl
test eax, eax
je 0x1004fb3b
push eax
call fcn.100bbe72
mov eax, dword [esi + 0x10]
add esp, 4
mov byte [esp + 0x14], bl
test eax, eax
je 0x1004fb4d
push eax
call fcn.100bbe72
mov ecx, eax
mov byte [esp + 0x18], bl
xor eax, eax
add esp, 4
cmp ecx, 0xffffffff
cmove ecx, eax
mov eax, dword [esi + 0x10]
mov dword [esp + 0x48], ecx
test eax, eax
je 0x1004fb66
push eax
call fcn.100bbe72
mov ecx, dword [esi + 0x10]
mov edx, eax
xor eax, eax
mov byte [esp + 0x18], bl
add esp, 4
cmp edx, 0xffffffff
cmove edx, eax
shl edx, 8
add edx, dword [esp + 0x48]
mov dword [esp + 0x1c], edx
test ecx, ecx
je 0x1004fb8c
push ecx
call fcn.100bbe72
mov ecx, eax
mov byte [esp + 0x18], bl
xor eax, eax
add esp, 4
cmp ecx, 0xffffffff
cmove ecx, eax
mov eax, dword [esi + 0x10]
mov dword [esp + 0x48], ecx
test eax, eax
je 0x1004fba5
push eax
call fcn.100bbe72
mov ecx, dword [esi + 0x10]
xor edx, edx
add esp, 4
mov byte [esp + 0x14], bl
cmp eax, 0xffffffff
cmove eax, edx
shl eax, 8
add eax, dword [esp + 0x48]
mov dword [esp + 0x20], eax
test ecx, ecx
je 0x1004fbcb
push ecx
call fcn.100bbe72
mov edx, dword [esi + 0x10]
xor edi, edi
add esp, 4
movzx ecx, al
cmp eax, 0xffffffff
mov byte [esp + 0x14], bl
cmove ecx, edi
mov edi, ebp
movzx eax, cl
mov dword [esp + 0x40], eax
mov dword [esp + 0x38], eax
test edx, edx
je 0x1004fbf0
push edx
call fcn.100bbe72
mov ecx, dword [esp + 0x44]
mov edx, eax
xor eax, eax
mov byte [esp + 0x18], bl
mov ebx, dword [esp + 0x1c]
add esp, 4
cmp edx, 0xffffffff
cmove edx, eax
jmp 0x1004fc09
mov ecx, dword [esi + 0x14]
cmp ecx, dword [esi + 0x18]
jae 0x1004fa2f
lea eax, [ecx + 1]
movzx ecx, byte [ecx]
mov dword [esi + 0x14], eax
mov dword [esp + 0x28], ecx
jmp 0x1004fa37
mov dword [esp + 0x28], 0
mov eax, dword [esi + 0x14]
cmp eax, dword [esi + 0x18]
jae 0x1004fa4e
mov cl, byte [eax]
inc eax
mov dword [esi + 0x14], eax
movzx edi, cl
mov byte [esp + 0x14], cl
jmp 0x1004fa55
mov byte [esp + 0x14], 0
xor edi, edi
mov ecx, dword [esi + 0x14]
cmp ecx, dword [esi + 0x18]
jae 0x1004fa6c
lea eax, [ecx + 1]
movzx ecx, byte [ecx]
mov dword [esi + 0x14], eax
mov dword [esp + 0x30], ecx
jmp 0x1004fa74
mov dword [esp + 0x30], 0
mov eax, dword [esi + 0x14]
cmp eax, dword [esi + 0x18]
jae 0x1004fa85
movzx ecx, byte [eax]
inc eax
mov dword [esi + 0x14], eax
jmp 0x1004fa87
xor ecx, ecx
mov edx, dword [esi + 0x14]
cmp edx, dword [esi + 0x18]
jae 0x1004fa9f
movzx ebx, byte [edx]
lea eax, [edx + 1]
shl ebx, 8
mov dword [esi + 0x14], eax
add ebx, ecx
jmp 0x1004faa5
mov ebx, ecx
jmp 0x1004faa5
mov ebx, eax
mov eax, dword [esi + 0x14]
cmp eax, dword [esi + 0x18]
jae 0x1004fab6
movzx ecx, byte [eax]
inc eax
mov dword [esi + 0x14], eax
jmp 0x1004fabe
xor ecx, ecx
jmp 0x1004fabe
mov ebx, dword [esp + 0x18]
mov edx, dword [esi + 0x14]
cmp edx, dword [esi + 0x18]
jae 0x1004fada
lea eax, [edx + 1]
mov dword [esi + 0x14], eax
movzx eax, byte [edx]
shl eax, 8
add eax, ecx
mov dword [esp + 0x34], eax
jmp 0x1004fae4
mov dword [esp + 0x34], ecx
jmp 0x1004fae4
mov ebx, dword [esp + 0x18]
mov ecx, dword [esi + 0x14]
cmp ecx, dword [esi + 0x18]
jae 0x1004fafb
lea eax, [ecx + 1]
movzx ecx, byte [ecx]
mov dword [esi + 0x14], eax
mov dword [esp + 0x2c], ecx
jmp 0x1004fb09
mov dword [esp + 0x2c], 0
jmp 0x1004fb09
mov ebx, dword [esp + 0x18]
mov eax, dword [esi + 0x14]
cmp eax, dword [esi + 0x18]
jae 0x1004fb1b
inc eax
mov dword [esi + 0x14], eax
jmp 0x1004fb1b
mov ebx, dword [esp + 0x18]
mov eax, dword [esi + 0x14]
cmp eax, dword [esi + 0x18]
jae 0x1004fb2d
inc eax
mov dword [esi + 0x14], eax
jmp 0x1004fb2d
mov ebx, dword [esp + 0x18]
mov eax, dword [esi + 0x14]
cmp eax, dword [esi + 0x18]
jae 0x1004fb3f
inc eax
mov dword [esi + 0x14], eax
jmp 0x1004fb3f
mov ebx, dword [esp + 0x18]
mov eax, dword [esi + 0x14]
cmp eax, dword [esi + 0x18]
jae 0x1004fb51
inc eax
mov dword [esi + 0x14], eax
jmp 0x1004fb51
mov ebx, dword [esp + 0x18]
mov eax, dword [esi + 0x14]
cmp eax, dword [esi + 0x18]
jae 0x1004fb62
movzx ecx, byte [eax]
inc eax
mov dword [esi + 0x14], eax
jmp 0x1004fb6a
xor ecx, ecx
jmp 0x1004fb6a
mov ebx, dword [esp + 0x18]
mov edx, dword [esi + 0x14]
cmp edx, dword [esi + 0x18]
jae 0x1004fb86
lea eax, [edx + 1]
movzx edx, byte [edx]
shl edx, 8
add edx, ecx
mov dword [esi + 0x14], eax
mov dword [esp + 0x1c], edx
jmp 0x1004fb90
mov dword [esp + 0x1c], ecx
jmp 0x1004fb90
mov ebx, dword [esp + 0x18]
mov eax, dword [esi + 0x14]
cmp eax, dword [esi + 0x18]
jae 0x1004fba1
movzx ecx, byte [eax]
inc eax
mov dword [esi + 0x14], eax
jmp 0x1004fba9
xor ecx, ecx
jmp 0x1004fba9
mov ebx, dword [esp + 0x18]
mov edx, dword [esi + 0x14]
cmp edx, dword [esi + 0x18]
jae 0x1004fbc5
lea eax, [edx + 1]
mov dword [esi + 0x14], eax
movzx eax, byte [edx]
shl eax, 8
add eax, ecx
mov dword [esp + 0x20], eax
jmp 0x1004fbcf
mov dword [esp + 0x20], ecx
jmp 0x1004fbcf
mov ebx, dword [esp + 0x18]
mov ecx, dword [esi + 0x14]
cmp ecx, dword [esi + 0x18]
jae 0x1004fbe6
lea eax, [ecx + 1]
movzx ecx, byte [ecx]
mov dword [esi + 0x14], eax
mov dword [esp + 0x38], ecx
jmp 0x1004fbf6
xor ecx, ecx
xor eax, eax
mov dword [esp + 0x38], eax
jmp 0x1004fbf6
mov ebx, dword [esp + 0x18]
mov ecx, eax
mov eax, dword [esi + 0x14]
cmp eax, dword [esi + 0x18]
jae 0x1004fc07
movzx edx, byte [eax]
inc eax
mov dword [esi + 0x14], eax
jmp 0x1004fc09
xor edx, edx
mov ebp, dword [esp + 0x30]
cmp ebp, 8
movzx eax, dl
mov dword [esp + 0x40], 0
mov byte [esp + 0x10], 0
lea edx, [ebp - 8]
mov byte [esp + 0x11], 0
cmovb edx, ebp
mov byte [esp + 0x12], 0
shr eax, 5
mov ebp, 1
and eax, 1
mov byte [esp + 0x13], 0
sub ebp, eax
mov dword [esp + 0x3c], 0
cmp dword [esp + 0x1c], 1
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 1
mov dword [esp + 0x50], ebp
jl 0x1004ffe9
cmp dword [esp + 0x20], 1
jl 0x1004ffe9
lea eax, [edx - 1]
cmp eax, 2
ja 0x1004ffe9
cmp ecx, 8
je 0x1004fc98
cmp ecx, 0x10
je 0x1004fc98
cmp ecx, 0x18
je 0x1004fc98
cmp ecx, 0x20
jne 0x1004ffe9
mov eax, dword [esp + 0x24]
test edi, edi
mov edx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x38]
cmovne ebp, dword [esp + 0x2c]
mov ecx, dword [esp + 0x20]
mov dword [eax], edx
mov eax, dword [esp + 0x58]
mov dword [eax], ecx
mov eax, ebp
shr eax, 3
mov dword [esp + 0x4c], eax
mov dword [0], eax
mov eax, ecx
imul eax, edx
xor ecx, ecx
mov edx, 4
mov dword [esp + 0x24], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100aeb03
mov ecx, dword [esi + 0x10]
add esp, 4
mov edx, dword [esp + 0x28]
mov dword [esp + 0x38], eax
test ecx, ecx
je 0x1004fd04
push 1
push edx
push ecx
call fcn.100b4fb9
add esp, 0xc
jmp 0x1004fd07
add dword [esi + 0x14], edx
test edi, edi
je 0x1004fd6d
mov eax, dword [esi + 0x10]
test eax, eax
je 0x1004fd20
push 1
push ebx
push eax
call fcn.100b4fb9
add esp, 0xc
jmp 0x1004fd23
add dword [esi + 0x14], ebx
mov eax, dword [esp + 0x2c]
imul eax, dword [esp + 0x34]
cdq
and edx, 7
lea ebx, [edx + eax]
sar ebx, 3
push ebx
call fcn.100aeb03
mov ecx, dword [esi + 0x10]
add esp, 4
mov dword [esp + 0x40], eax
test ecx, ecx
je 0x1004fd59
push ecx
push ebx
push 1
push eax
call fcn.100b5976
add esp, 0x10
jmp 0x1004fd6d
mov edi, dword [esi + 0x14]
push ebx
push edi
push eax
call fcn.100abd30
lea eax, [edi + ebx]
add esp, 0xc
mov dword [esi + 0x14], eax
mov edi, dword [esp + 0x24]
test edi, edi
jle 0x1004ff5b
mov ebx, dword [esp + 0x38]
add ebx, 2
xor eax, eax
mov dword [esp + 0x2c], ebx
mov cl, al
mov dl, al
mov ch, al
mov dh, al
nop
cmp dword [esp + 0x30], 8
jb 0x1004fdf2
test eax, eax
jne 0x1004fde0
mov eax, dword [esi + 0x10]
test eax, eax
je 0x1004fdb7
push eax
call fcn.100bbe72
mov ecx, eax
add esp, 4
xor eax, eax
cmp ecx, 0xffffffff
cmove ecx, eax
jmp 0x1004fdca
mov eax, dword [esi + 0x14]
cmp eax, dword [esi + 0x18]
jae 0x1004fdc8
movzx ecx, byte [eax]
inc eax
mov dword [esi + 0x14], eax
jmp 0x1004fdca
xor ecx, ecx
movzx ecx, cl
mov eax, ecx
and eax, 0x7f
inc eax
shr ecx, 7
mov dword [esp + 0x3c], eax
mov dword [esp + 0x44], ecx
jmp 0x1004fdf2
cmp dword [esp + 0x44], 0
je 0x1004fdf2
cmp dword [esp + 0x48], 0
je 0x1004ff37
cmp byte [esp + 0x14], 0
je 0x1004fe5a
mov eax, dword [esi + 0x10]
test eax, eax
je 0x1004fe15
push eax
call fcn.100bbe72
mov ecx, eax
add esp, 4
xor eax, eax
cmp ecx, 0xffffffff
cmove ecx, eax
jmp 0x1004fe28
mov eax, dword [esi + 0x14]
cmp eax, dword [esi + 0x18]
jae 0x1004fe26
movzx ecx, byte [eax]
inc eax
mov dword [esi + 0x14], eax
jmp 0x1004fe28
xor ecx, ecx
xor edi, edi
movzx eax, cl
cmp eax, dword [esp + 0x34]
cmovl edi, eax
imul edi, dword [esp + 0x4c]
test ebp, ebp
je 0x1004fea1
xor ecx, ecx
lea edx, [esp + 0x18]
add edi, dword [esp + 0x40]
mov al, byte [edi]
lea edi, [edi + 1]
add ecx, 8
mov byte [edx], al
lea edx, [edx + 1]
cmp ecx, ebp
jl 0x1004fe47
jmp 0x1004fea1
test ebp, ebp
je 0x1004fea5
xor edi, edi
lea ebx, [esp + 0x18]
mov eax, dword [esi + 0x10]
test eax, eax
je 0x1004fe80
push eax
call fcn.100bbe72
mov ecx, eax
add esp, 4
xor eax, eax
cmp ecx, 0xffffffff
cmove ecx, eax
jmp 0x1004fe93
mov eax, dword [esi + 0x14]
cmp eax, dword [esi + 0x18]
jae 0x1004fe91
movzx ecx, byte [eax]
inc eax
mov dword [esi + 0x14], eax
jmp 0x1004fe93
xor ecx, ecx
mov byte [ebx], cl
add edi, 8
inc ebx
cmp edi, ebp
jl 0x1004fe64
mov ebx, dword [esp + 0x2c]
mov edi, dword [esp + 0x24]
lea eax, [ebp - 8]
cmp eax, 0x18
ja case.0x1004feb4.9
movzx eax, byte [eax + 0x10050008]
jmp dword [eax*4 + 0x1004fff4]
mov cl, byte [esp + 0x18]
mov byte [esp + 0x10], cl
mov byte [esp + 0x11], cl
mov byte [esp + 0x13], 0xff
mov byte [esp + 0x12], cl
jmp case.0x1004feb4.9
mov eax, dword [esp + 0x18]
mov cl, al
mov byte [esp + 0x10], cl
mov byte [esp + 0x11], cl
mov byte [esp + 0x13], ah
mov byte [esp + 0x12], cl
jmp case.0x1004feb4.9
mov cl, byte [esp + 0x1a]
mov eax, dword [esp + 0x18]
mov byte [esp + 0x10], cl
mov byte [esp + 0x12], al
mov byte [esp + 0x13], 0xff
jmp 0x1004ff19
mov al, byte [esp + 0x1a]
mov byte [esp + 0x10], al
mov eax, dword [esp + 0x18]
mov byte [esp + 0x12], al
mov al, byte [esp + 0x1b]
mov byte [esp + 0x13], al
mov byte [esp + 0x11], ah
mov eax, dword [esp + 0x3c]
xor edx, edx
mov cl, byte [esp + 0x10]
mov ch, byte [esp + 0x12]
mov dword [esp + 0x48], edx
mov dl, byte [esp + 0x11]
mov dh, byte [esp + 0x13]
mov byte [ebx - 2], cl
dec eax
mov byte [ebx - 1], dl
mov byte [ebx], ch
mov byte [ebx + 1], dh
add ebx, 4
sub edi, 1
mov dword [esp + 0x3c], eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x24], edi
jne 0x1004fd90
cmp dword [esp + 0x50], 0
je 0x1004ffcc
mov edx, dword [esp + 0x20]
xor ebp, ebp
test edx, edx
jle 0x1004ffcc
mov eax, dword [esp + 0x1c]
xor ecx, ecx
xor ebx, ebx
shl eax, 2
mov dword [esp + 0x50], eax
nop dword [eax + eax]
mov edi, eax
test edi, edi
jle 0x1004ffbe
mov esi, dword [esp + 0x38]
sub edx, ecx
dec edx
add esi, ebx
imul edx, dword [esp + 0x1c]
lea edx, [ebx + edx*4]
add edx, dword [esp + 0x38]
nop dword [eax + eax]
mov al, byte [edx]
lea esi, [esi + 1]
mov cl, byte [esi - 1]
lea edx, [edx + 1]
mov byte [esi - 1], al
dec edi
mov byte [edx - 1], cl
test edi, edi
jg 0x1004ffa0
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x20]
inc ebp
add ebx, eax
lea ecx, [ebp*2]
cmp ecx, edx
jl 0x1004ff80
mov eax, dword [esp + 0x40]
test eax, eax
je 0x1004ffdd
push eax
call fcn.100aeb0e
add esp, 4
mov eax, dword [esp + 0x38]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret