Function at 0x42ff90
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x477e98
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x4eec64]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x59c]
push eax
push 1
lea edi, [esi + 4]
push 4
push edi
call fcn.0045e149
add esp, 0x10
cmp eax, 1
jne 0x4306ce
mov eax, dword [edi]
rol eax, 0x10
mov ecx, eax
mov edx, eax
shr ecx, 8
shl edx, 8
xor ecx, edx
shl eax, 8
and ecx, 0xff00ff
xor ecx, eax
mov dword [edi], ecx
mov eax, dword [ebx + 0x59c]
push eax
push 1
push 4
push esi
call fcn.0045e149
add esp, 0x10
cmp eax, 1
jne 0x4306ce
mov eax, dword [esi]
rol eax, 0x10
mov ecx, eax
mov edx, eax
shr ecx, 8
shl edx, 8
xor ecx, edx
shl eax, 8
and ecx, 0xff00ff
xor ecx, eax
mov dword [esi], ecx
mov eax, dword [ebx + 0x59c]
push eax
push 1
lea edi, [esi + 0xc]
push 4
push edi
call fcn.0045e149
add esp, 0x10
cmp eax, 1
jne 0x4306ce
mov eax, dword [edi]
rol eax, 0x10
mov ecx, eax
mov edx, eax
shr ecx, 8
shl edx, 8
xor ecx, edx
shl eax, 8
and ecx, 0xff00ff
xor ecx, eax
mov dword [edi], ecx
mov eax, dword [ebx + 0x59c]
push eax
push 1
lea edi, [esi + 8]
push 4
push edi
call fcn.0045e149
add esp, 0x10
cmp eax, 1
jne 0x4306ce
mov eax, dword [edi]
rol eax, 0x10
mov ecx, eax
mov edx, eax
shr ecx, 8
shl edx, 8
xor ecx, edx
shl eax, 8
and ecx, 0xff00ff
xor ecx, eax
mov dword [edi], ecx
mov eax, dword [ebx + 0x59c]
push eax
push 1
lea edi, [esi + 0x10]
push 2
push edi
mov dword [ebp - 0x18], edi
call fcn.0045e149
add esp, 0x10
cmp eax, 1
jne 0x4306ce
movzx eax, word [edi]
rol ax, 8
mov word [edi], ax
mov eax, dword [ebp - 0x18]
movzx ecx, word [eax]
lea edi, [esi + 0x14]
push ecx
mov ecx, 2
mov dword [ebp - 0x1c], edi
call fcn.0042f4f0
mov edi, dword [ebp - 0x18]
movzx edx, word [edi]
push 2
lea ecx, [esi + 0x1c]
push edx
mov dword [ebp - 0x28], ecx
call fcn.00421630
xor eax, eax
mov dword [ebp - 0x14], 0
cmp ax, word [edi]
jae 0x4301b1
mov eax, dword [ebx + 0x59c]
mov ecx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x14]
mov edi, dword [ecx]
push eax
push 1
add esi, esi
add edi, esi
push 2
push edi
call fcn.0045e149
add esp, 0x10
cmp eax, 1
jne 0x4306ce
movzx eax, word [edi]
mov edx, dword [ebp - 0x1c]
rol ax, 8
mov word [edi], ax
mov eax, dword [edx]
add esi, eax
cmp word [esi], 0xffff
jne 0x430168
mov ecx, 3
mov word [esi], cx
mov eax, dword [ebx + 0x59c]
mov edx, dword [ebp - 0x28]
mov ecx, dword [edx]
mov edi, dword [ebp - 0x14]
push eax
push 1
lea esi, [ecx + edi*4]
push 4
push esi
call fcn.0045e149
add esp, 0x10
cmp eax, 1
jne 0x4306ce
mov ecx, esi
call fcn.00431600
test eax, eax
jne 0x4306d3
mov edx, dword [ebp - 0x18]
movzx eax, word [edx]
inc edi
mov dword [ebp - 0x14], edi
cmp edi, eax
jb 0x430120
mov esi, dword [ebx + 0x59c]
push 0x38
call fcn.00431650
add esp, 4
test al, al
je 0x4306ce
mov esi, dword [ebx + 0x59c]
push 0x42
call fcn.00431650
add esp, 4
test al, al
je 0x4306ce
mov esi, dword [ebx + 0x59c]
push 0x49
call fcn.00431650
add esp, 4
test al, al
je 0x4306ce
mov esi, dword [ebx + 0x59c]
push 0x4d
call fcn.00431650
add esp, 4
test al, al
je 0x4306ce
mov eax, dword [ebx + 0x59c]
mov edi, dword [ebp + 0xc]
push eax
push 4
lea ecx, [edi + 0x24]
push 1
push ecx
call fcn.0045e149
add esp, 0x10
cmp eax, 4
jne 0x4306ce
mov byte [edi + 0x28], 0
mov eax, dword [ebx + 0x59c]
lea ecx, [edi + 0x29]
call fcn.00431630
test eax, eax
jne 0x4306d3
mov eax, dword [ebx + 0x59c]
lea ecx, [edi + 0x2a]
call fcn.00431630
test eax, eax
jne 0x4306d3
mov eax, dword [ebx + 0x59c]
lea ecx, [edi + 0x2b]
call fcn.00431630
test eax, eax
jne 0x4306d3
mov eax, dword [ebx + 0x59c]
lea ecx, [ebp - 0x11]
call fcn.00431630
test eax, eax
jne 0x4306d3
mov eax, dword [ebx + 0x59c]
push eax
push 1
lea esi, [edi + 0x2c]
push 4
push esi
call fcn.0045e149
add esp, 0x10
cmp eax, 1
jne 0x4306ce
mov ecx, esi
call fcn.00431600
test eax, eax
jne 0x4306d3
mov eax, dword [ebx + 0x59c]
push eax
call fcn.0045fa77
add eax, dword [esi]
add esp, 4
mov dword [ebp - 0x18], eax
mov eax, dword [ebx + 0x59c]
push eax
push 1
lea esi, [edi + 0x30]
push 4
push esi
call fcn.0045e149
add esp, 0x10
cmp eax, 1
jne 0x4306ce
mov ecx, esi
call fcn.00431600
test eax, eax
jne 0x4306d3
mov esi, dword [esi]
test esi, esi
je 0x43041d
cmp esi, 0x14
jne 0x4306ce
mov eax, dword [ebx + 0x59c]
push eax
push 1
lea esi, [edi + 0x34]
push 4
push esi
call fcn.0045e149
add esp, 0x10
cmp eax, 1
jne 0x4306ce
mov ecx, esi
call fcn.00431600
test eax, eax
jne 0x4306d3
mov eax, dword [ebx + 0x59c]
push eax
push 1
lea esi, [edi + 0x38]
push 4
push esi
call fcn.0045e149
add esp, 0x10
cmp eax, 1
jne 0x4306ce
mov ecx, esi
call fcn.00431600
test eax, eax
jne 0x4306d3
mov eax, dword [ebx + 0x59c]
push eax
push 1
lea esi, [edi + 0x3c]
push 4
push esi
call fcn.0045e149
add esp, 0x10
cmp eax, 1
jne 0x4306ce
mov ecx, esi
call fcn.00431600
test eax, eax
jne 0x4306d3
mov eax, dword [ebx + 0x59c]
push eax
push 1
lea esi, [edi + 0x40]
push 4
push esi
call fcn.0045e149
add esp, 0x10
cmp eax, 1
jne 0x4306ce
mov ecx, esi
call fcn.00431600
test eax, eax
jne 0x4306d3
mov eax, dword [ebx + 0x59c]
lea ecx, [edi + 0x44]
call fcn.00431630
test eax, eax
jne 0x4306d3
mov eax, dword [ebx + 0x59c]
lea ecx, [edi + 0x45]
call fcn.00431630
test eax, eax
jne 0x4306d3
mov eax, dword [ebx + 0x59c]
push eax
push 1
lea edx, [ebp - 0x14]
push 2
push edx
call fcn.0045e149
add esp, 0x10
cmp eax, 1
jne 0x4306ce
mov eax, dword [ebx + 0x59c]
push eax
push 1
lea esi, [edi + 0x48]
push 4
push esi
call fcn.0045e149
add esp, 0x10
cmp eax, 1
jne 0x4306ce
mov ecx, esi
call fcn.00431600
test eax, eax
jne 0x4306d3
mov ecx, dword [esi]
mov eax, dword [ebx + 0x59c]
push 1
push ecx
push eax
call fcn.0045dd31
add esp, 0xc
test eax, eax
jne 0x4306d3
mov eax, dword [ebx + 0x59c]
lea esi, [edi + 0x4c]
mov ecx, esi
call fcn.00431630
test eax, eax
jne 0x4306d3
or byte [esi], 3
mov al, byte [esi]
mov ecx, dword [ebx + 0x59c]
movzx edx, al
push ecx
push edx
lea eax, [edi + 0x4d]
push 1
push eax
call fcn.0045e149
movzx ecx, byte [esi]
add esp, 0x10
cmp eax, ecx
jne 0x4306ce
mov byte [ecx + edi + 0x4d], 0
mov eax, dword [ebx + 0x59c]
push eax
call fcn.0045fa77
add esp, 4
cmp eax, dword [ebp - 0x18]
jg 0x43069e
jmp 0x4304d0
mov esi, dword [ebx + 0x59c]
push 0x38
call fcn.00431650
add esp, 4
test al, al
je 0x43069e
mov esi, dword [ebx + 0x59c]
push 0x42
call fcn.00431650
add esp, 4
test al, al
je 0x43069e
mov esi, dword [ebx + 0x59c]
push 0x49
call fcn.00431650
add esp, 4
test al, al
je 0x43069e
mov esi, dword [ebx + 0x59c]
push 0x4d
call fcn.00431650
add esp, 4
test al, al
je 0x43069e
mov eax, dword [ebx + 0x59c]
push eax
push 1
lea ecx, [ebp - 0x20]
push 4
push ecx
call fcn.0045e149
add esp, 0x10
cmp eax, 1
jne 0x4306ce
lea ecx, [ebp - 0x20]
call fcn.00431600
test eax, eax
jne 0x4306d3
mov eax, dword [ebx + 0x59c]
push eax
push 1
lea edx, [ebp - 0x24]
push 4
push edx
call fcn.0045e149
add esp, 0x10
cmp eax, 1
jne 0x4306ce
lea ecx, [ebp - 0x24]
call fcn.00431600
test eax, eax
jne 0x4306d3
mov eax, dword [ebx + 0x59c]
push eax
call fcn.0045fa77
add eax, dword [ebp - 0x24]
add esp, 4
cmp dword [ebp - 0x20], 0x6c756e69
je 0x4305e2
mov ecx, dword [ebx + 0x59c]
push 0
push eax
push ecx
call fcn.0045dd31
add esp, 0xc
test eax, eax
jne 0x4306d3
mov eax, dword [ebx + 0x59c]
push eax
call fcn.0045fa77
add esp, 4
cmp eax, dword [ebp - 0x18]
jle 0x4304d0
jmp 0x43069e
mov eax, dword [ebx + 0x59c]
push eax
push 1
lea eax, [ebp - 0x14]
push 4
push eax
call fcn.0045e149
add esp, 0x10
cmp eax, 1
jne 0x4306ce
lea ecx, [ebp - 0x14]
call fcn.00431600
test eax, eax
jne 0x4306d3
mov eax, dword [ebp - 0x14]
lea eax, [eax + eax + 2]
call fcn.00472bc0
mov esi, esp
test esi, esi
jne 0x43062d
lea eax, [esp + 4]
jmp 0x4306d3
mov eax, dword [ebx + 0x59c]
mov ecx, dword [ebp - 0x14]
push eax
push ecx
push 2
push esi
call fcn.0045e149
mov ecx, dword [ebp - 0x14]
add esp, 0x10
cmp eax, ecx
jne 0x4306ce
xor eax, eax
test ecx, ecx
jbe 0x430668
movzx ecx, word [esi + eax*2]
rol cx, 8
mov word [esi + eax*2], cx
mov ecx, dword [ebp - 0x14]
inc eax
cmp eax, ecx
jb 0x430654
xor edx, edx
push 0xffffffffffffffff
mov word [esi + ecx*2], dx
push esi
lea ecx, [ebp - 0x1c]
call fcn.00419c00
lea eax, [ebp - 0x1c]
push eax
lea ecx, [edi + 0x150]
mov dword [ebp - 4], 0
call fcn.00401190
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 0xffffffff
call fcn.00401080
mov eax, dword [ebx + 0x59c]
push eax
call fcn.0045fa77
mov ecx, dword [ebp - 0x18]
add esp, 4
cmp eax, ecx
je 0x4306ca
mov ebx, dword [ebx + 0x59c]
push 0
push ecx
push ebx
call fcn.0045dd31
add esp, 0xc
test eax, eax
jne 0x4306d3
xor eax, eax
jmp 0x4306d3
mov eax, 3
lea esp, [ebp - 0x38]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045c0ce
mov esp, ebp
pop ebp
ret 8