Function at 0x403fa0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x422eed
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push ebx
push esi
push edi
mov eax, dword [0x435004]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x28], ebx
xor eax, eax
xor esi, esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 4], eax
lea edi, [ebx + 0x14]
lea eax, [ebp - 0x50]
cmp edi, eax
je 0x40401e
mov eax, dword [edi + 4]
mov esi, dword [edi]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x4c], eax
mov eax, dword [edi + 8]
mov dword [ebp - 0x20], esi
mov dword [edi], 0
mov dword [ebp - 0x50], esi
mov dword [edi + 4], 0
mov dword [ebp - 0x40], eax
mov dword [edi + 8], 0
mov dword [ebp - 0x48], eax
mov ecx, dword [ebx + 4]
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
lea edx, [ebx + 8]
call fcn.00404470
add esp, 0x14
test al, al
je 0x404400
cmp dword [ebp - 0x34], 0x2000000
ja 0x404400
mov eax, dword [ebp - 0x24]
mov cl, al
and cl, 1
inc eax
mov byte [ebp - 0xd], cl
movzx ecx, word [ebp - 0x14]
shr eax, 1
add eax, dword [ebp - 0x44]
add ecx, eax
not ecx
and ecx, 1
lea eax, [ecx*2 + 2]
mov dword [ebx + 0x4c], eax
mov eax, 0xffff
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0
mov word [ebp - 0x60], ax
lea eax, [ebp - 0x6c]
mov byte [ebp - 4], 2
push eax
movzx eax, word [ebp - 0x18]
mov ecx, edi
push eax
call fcn.00404840
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x6c]
test ecx, ecx
je 0x4040fa
mov edx, dword [ebp - 0x64]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x4040f0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40445c
push edx
push ecx
call fcn.0040cddf
add esp, 8
mov byte [ebp - 4], 0
xor eax, eax
mov cx, word [ebp - 0x14]
mov dword [ebp - 0x3c], 0
cmp ax, cx
jae 0x40423d
xor ebx, ebx
mov dword [ebp - 0x2c], ebx
nop dword [eax]
mov eax, dword [ebp - 0x28]
push dword [eax + 4]
lea eax, [ebp - 0x1c]
push 1
push 2
push eax
call fcn.0041198e
add esp, 0x10
cmp eax, 1
jne 0x404400
mov ax, word [ebp - 0x1c]
mov ecx, 0x1000
cmp ax, cx
jb 0x4041b1
sub ax, cx
movzx ecx, ax
mov eax, dword [ebp - 0x30]
sub eax, esi
sar eax, 4
cmp ecx, eax
jae 0x404400
shl ecx, 4
mov eax, 0xffff
add esi, ecx
cmp word [esi + 0xc], ax
je 0x404400
mov edx, dword [edi]
add edx, ebx
cmp edx, esi
je 0x4041fd
mov ecx, dword [edx]
mov eax, dword [esi]
mov dword [edx], eax
mov eax, dword [esi + 4]
mov dword [esi], ecx
mov ecx, dword [edx + 4]
mov dword [edx + 4], eax
mov eax, dword [esi + 8]
mov dword [esi + 4], ecx
mov ecx, dword [edx + 8]
mov dword [edx + 8], eax
mov dword [esi + 8], ecx
mov ax, word [esi + 0xc]
movzx ecx, word [edx + 0xc]
mov word [edx + 0xc], ax
mov word [esi + 0xc], cx
jmp 0x4041fd
mov ebx, dword [edi]
add ebx, dword [ebp - 0x2c]
movzx esi, ax
inc esi
mov eax, dword [ebx + 4]
mov ecx, eax
mov edx, dword [ebx]
sub ecx, edx
mov dword [ebp - 0x38], eax
cmp esi, ecx
jae 0x4041cf
lea eax, [esi + edx]
jmp 0x4041fa
jbe 0x4041fd
mov eax, dword [ebx + 8]
sub eax, edx
cmp esi, eax
jbe 0x4041e5
push ecx
push esi
mov ecx, ebx
call fcn.00402610
jmp 0x4041fd
sub esi, ecx
push esi
push 0
push dword [ebp - 0x38]
call fcn.0040e700
mov eax, dword [ebp - 0x38]
add esp, 0xc
add eax, esi
mov dword [ebx + 4], eax
mov eax, dword [edi]
mov esi, dword [ebp - 0x2c]
mov ecx, dword [eax + esi + 4]
sub ecx, dword [eax + esi]
mov eax, dword [ebp - 0x34]
add ecx, 2
cmp eax, ecx
jb 0x404400
mov edx, dword [ebp - 0x3c]
sub eax, ecx
mov cx, word [ebp - 0x14]
add esi, 0x10
mov dword [ebp - 0x34], eax
inc edx
movzx eax, cx
mov ebx, esi
mov dword [ebp - 0x2c], esi
mov esi, dword [ebp - 0x20]
mov dword [ebp - 0x3c], edx
cmp edx, eax
jb 0x404120
xor eax, eax
xor ebx, ebx
mov esi, 0xe000
cmp ax, cx
jae 0x4042ad
xor esi, esi
mov edx, 0xffff
mov eax, dword [edi]
add eax, 0xc
add eax, esi
cmp word [eax], dx
jne 0x40429d
cmp dword [ebp - 0x24], 2
jb 0x404400
mov ecx, dword [ebp - 0x28]
push dword [ecx + 4]
push 1
push 2
push eax
call fcn.0041198e
add esp, 0x10
cmp eax, 1
jne 0x404400
mov eax, dword [edi]
mov ecx, 0xe000
sub dword [ebp - 0x24], 2
mov edx, 0xffff
or word [esi + eax + 0xc], cx
mov cx, word [ebp - 0x14]
inc ebx
movzx eax, cx
add esi, 0x10
cmp ebx, eax
jb 0x404252
mov esi, 0xe000
xor edx, edx
xor eax, eax
mov dword [ebp - 0x3c], edx
cmp ax, cx
jae 0x404324
xor ebx, ebx
nop dword [eax + eax]
mov eax, dword [edi]
test word [ebx + eax + 0xc], si
je 0x404316
mov esi, dword [ebx + eax + 4]
mov ecx, dword [ebx + eax]
sub esi, ecx
cmp dword [ebp - 0x24], esi
jb 0x404400
mov eax, dword [ebp - 0x28]
push dword [eax + 4]
push esi
push 1
push ecx
call fcn.0041198e
add esp, 0x10
cmp eax, esi
jne 0x404400
mov ecx, dword [edi]
mov esi, 0xe000
mov edx, dword [ebp - 0x3c]
add ecx, ebx
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
add dword [ebp - 0x24], eax
mov eax, 0x1fff
and word [ecx + 0xc], ax
mov cx, word [ebp - 0x14]
inc edx
movzx eax, cx
add ebx, 0x10
mov dword [ebp - 0x3c], edx
cmp edx, eax
jb 0x4042c0
movzx eax, word [ebp - 0x18]
xor esi, esi
mov ebx, dword [ebp - 0x20]
movzx ecx, cx
mov dword [ebp - 0x2c], esi
cmp ecx, eax
jae 0x4043c5
mov eax, dword [ebp - 0x30]
lea edx, [ebx + 8]
sub eax, ebx
sar eax, 4
mov dword [ebp - 0x38], eax
mov eax, ecx
shl eax, 4
mov dword [ebp - 0x3c], eax
cmp esi, dword [ebp - 0x38]
jae 0x404403
mov ebx, 0xffff
cmp word [edx + 4], bx
mov ebx, dword [ebp - 0x20]
je 0x4043b3
mov esi, dword [edi]
inc ecx
add esi, eax
mov dword [ebp - 0x1c], ecx
add eax, 0x10
mov dword [ebp - 0x3c], eax
lea eax, [edx - 8]
cmp esi, eax
je 0x4043b0
mov ecx, dword [esi]
mov eax, dword [edx - 8]
mov dword [esi], eax
mov eax, dword [edx - 4]
mov dword [edx - 8], ecx
mov ecx, dword [esi + 4]
mov dword [esi + 4], eax
mov eax, dword [edx]
mov dword [edx - 4], ecx
mov ecx, dword [esi + 8]
mov dword [esi + 8], eax
mov dword [edx], ecx
movzx ecx, word [esi + 0xc]
mov ax, word [edx + 4]
mov word [esi + 0xc], ax
mov word [edx + 4], cx
mov ecx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x2c]
movzx eax, word [ebp - 0x18]
inc esi
add edx, 0x10
mov dword [ebp - 0x2c], esi
cmp ecx, eax
mov eax, dword [ebp - 0x3c]
jb 0x404351
cmp dword [ebp - 0x24], 0
ja 0x404403
cmp byte [ebp - 0xd], 0
je 0x4043ec
mov eax, dword [ebp - 0x28]
push dword [eax + 4]
lea eax, [ebp - 0xe]
push 1
push 1
push eax
call fcn.0041198e
add esp, 0x10
cmp eax, 1
jne 0x404403
mov eax, dword [ebp - 0x28]
push dword [eax + 4]
call fcn.00411774
add esp, 4
mov esi, eax
mov edi, edx
jmp 0x404408
mov ebx, dword [ebp - 0x20]
or esi, 0xffffffff
or edi, esi
test ebx, ebx
je 0x404446
mov edx, dword [ebp - 0x30]
push ecx
mov ecx, ebx
call fcn.00404b40
mov ecx, dword [ebp - 0x40]
add esp, 4
sub ecx, ebx
mov eax, ebx
and ecx, 0xfffffff0
cmp ecx, 0x1000
jb 0x40443c
mov ebx, dword [ebx - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40445c
push ecx
push ebx
call fcn.0040cddf
add esp, 8
mov eax, esi
mov edx, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.0041101c
int3