Function at 0x4040a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x429004]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [0x42f398]
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
movzx esi, byte [eax + 0xd]
mov dword [ebp - 0x44], eax
movzx eax, word [eax + 0xb]
imul esi, eax
push edi
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x4c], esi
mov esi, ebx
lea edi, [esi + 1]
nop word [eax + eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x4040e0
sub esi, edi
lea eax, [esi - 1]
mov edi, eax
test edi, edi
js 0x4040fd
cmp byte [ebx + edi], 0x5c
je 0x4040fd
sub edi, 1
jns 0x4040f2
movzx edx, word [edx]
mov dword [ebp - 0x38], edx
test edi, edi
js 0x4041c5
lea eax, [edi + 2]
push eax
call fcn.0040f92d
add esp, 4
mov dword [ebp - 0x38], eax
lea ecx, [edi + 1]
push ecx
push ebx
push eax
call fcn.0040b4a0
mov eax, dword [ebp - 0x38]
add esp, 0xc
mov ecx, dword [ebp - 0x40]
mov byte [eax + edi + 1], 0
movzx edx, word [ecx]
mov ecx, dword [ebp - 0x44]
push eax
call fcn.004022a0
add esp, 4
mov dword [ebp - 0x40], eax
test eax, eax
jne 0x404167
push dword [ebp - 0x38]
call fcn.0040f5f1
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00409c39
mov esp, ebp
pop ebp
ret
push 0x20
call fcn.0040f92d
mov edx, dword [ebp - 0x40]
add esp, 4
mov dword [ebp - 0x48], eax
mov ecx, dword [edx + 0xa]
movups xmm0, xmmword [ecx]
movups xmmword [eax], xmm0
movups xmm0, xmmword [ecx + 0x10]
movups xmmword [eax + 0x10], xmm0
push dword [edx]
call fcn.0040f5f1
add esp, 4
push dword [ebp - 0x40]
call fcn.0040f5f1
add esp, 4
push dword [ebp - 0x38]
call fcn.0040f5f1
mov eax, dword [ebp - 0x48]
add esp, 4
test eax, eax
je 0x404154
movzx ecx, word [eax + 0x1a]
push eax
mov dword [ebp - 0x38], ecx
call fcn.0040f5f1
mov ecx, dword [ebp - 0x3c]
lea eax, [esi - 1]
add esp, 4
cmp edi, eax
jne 0x404241
push 0x5c
push ecx
call fcn.0040a880
mov ebx, dword [ebp - 0x3c]
add esp, 8
test eax, eax
je 0x4041de
lea ebx, [eax + 1]
mov ecx, ebx
call fcn.00401490
mov esi, 7
nop word [eax + eax]
cmp byte [esi + ebx], 0x20
jne 0x4041fb
sub esi, 1
jns 0x4041f0
inc esi
lea eax, [ebp - 0x28]
push esi
push ebx
push eax
call fcn.0040b4a0
add esp, 0xc
mov edi, 2
add ebx, 8
cmp byte [ebx + edi], 0x20
jne 0x40421d
sub edi, 1
jns 0x404212
add edi, 1
je 0x40426a
push edi
lea eax, [ebp - 0x27]
mov byte [ebp + esi - 0x28], 0x2e
add eax, esi
push ebx
push eax
call fcn.0040b4a0
lea eax, [edi + esi]
add esp, 0xc
mov byte [ebp + eax - 0x27], 0
jmp 0x40426f
sub esi, edi
mov eax, 0x1f
dec esi
cmp esi, eax
cmovg esi, eax
lea eax, [ebx + 1]
add eax, edi
push esi
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0040b4a0
add esp, 0xc
cmp esi, 0x20
jae 0x404548
mov byte [ebp + esi - 0x28], 0
mov edx, dword [ebp - 0x38]
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0x44]
push eax
call fcn.00401d70
mov esi, eax
add esp, 4
test esi, esi
je 0x404353
push 0x20
call fcn.0040f92d
mov ecx, dword [esi + 0xa]
mov ebx, eax
add esp, 4
mov dword [ebp - 0x48], ebx
movups xmm0, xmmword [ecx]
movups xmmword [ebx], xmm0
movups xmm0, xmmword [ecx + 0x10]
movups xmmword [ebx + 0x10], xmm0
push dword [esi]
call fcn.0040f5f1
add esp, 4
push esi
call fcn.0040f5f1
add esp, 4
test byte [ebx + 0xb], 0x10
jne 0x4042ca
push ebx
jmp 0x40414c
movzx eax, word [ebx + 0x1a]
mov ebx, dword [ebp - 0x3c]
push 0x5c
push ebx
mov dword [ebp - 0x38], eax
call fcn.0040a880
add esp, 8
test eax, eax
je 0x4042e6
lea ebx, [eax + 1]
mov ecx, ebx
call fcn.00401490
mov esi, 7
cmp byte [esi + ebx], 0x20
jne 0x4042fd
sub esi, 1
jns 0x4042f2
inc esi
lea eax, [ebp - 0x28]
push esi
push ebx
push eax
call fcn.0040b4a0
add esp, 0xc
mov edi, 2
add ebx, 8
cmp byte [ebx + edi], 0x20
jne 0x40431f
sub edi, 1
jns 0x404314
add edi, 1
je 0x404343
push edi
lea eax, [ebp - 0x27]
mov byte [ebp + esi - 0x28], 0x2e
add eax, esi
push ebx
push eax
call fcn.0040b4a0
lea eax, [edi + esi]
add esp, 0xc
mov byte [ebp + eax - 0x27], 0
jmp 0x404348
mov byte [ebp + esi - 0x28], 0
push dword [ebp - 0x48]
call fcn.0040f5f1
add esp, 4
mov ecx, 0x425ea4
lea eax, [ebp - 0x28]
nop dword [eax + eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x404380
test dl, dl
je 0x40437c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x404380
add eax, 2
add ecx, 2
test dl, dl
jne 0x404360
xor eax, eax
jmp 0x404385
sbb eax, eax
or eax, 1
test eax, eax
je 0x404154
mov ecx, 0x425f28
lea eax, [ebp - 0x28]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4043b5
test dl, dl
je 0x4043b1
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4043b5
add eax, 2
add ecx, 2
test dl, dl
jne 0x404395
xor eax, eax
jmp 0x4043ba
sbb eax, eax
or eax, 1
test eax, eax
je 0x404154
push 0x426178
push dword [ebp - 0x3c]
call fcn.0040c6da
mov esi, eax
add esp, 8
test esi, esi
je 0x404154
push 2
push 0
push esi
call fcn.0040cde4
add esp, 0xc
push esi
call fcn.0040c018
add esp, 4
mov ebx, eax
push esi
call fcn.0040ef8e
add esp, 4
push ebx
call fcn.0040f92d
mov edi, eax
add esp, 4
test edi, edi
je 0x40453d
push esi
push ebx
push 1
push edi
call fcn.0040f7f2
add esp, 0x10
cmp eax, ebx
jne 0x40453d
push esi
call fcn.0040c8b4
add esp, 4
mov dword [ebp - 0x50], ebx
xorps xmm0, xmm0
mov byte [ebp - 0x61], 0x20
lea edx, [ebp - 0x6c]
movq qword [ebp - 0x60], xmm0
lea ecx, [ebp - 0x28]
mov word [ebp - 0x58], 0
call fcn.00401570
push 0
call fcn.0040f2dd
add esp, 4
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x34]
mov dword [ebp - 0x30], edx
push eax
call fcn.0040f5ca
mov esi, eax
mov ebx, dword [ebp - 0x44]
mov eax, 0x200
add esp, 4
mov dx, word [esi + 8]
mov ecx, dword [esi]
shl dx, 6
or dx, word [esi + 4]
sar ecx, 1
shl dx, 5
or dx, cx
mov cx, word [esi + 0x14]
add cx, 0x30
mov word [ebp - 0x56], dx
movzx ecx, cx
xor edx, edx
imul ecx, eax
mov ax, word [esi + 0x10]
inc ax
shl ax, 5
push 0
or cx, ax
mov eax, dword [ebp - 0x50]
dec eax
or cx, word [esi + 0xc]
add eax, dword [ebp - 0x4c]
div dword [ebp - 0x4c]
mov word [ebp - 0x54], cx
mov ecx, ebx
mov edx, eax
call fcn.00402630
add esp, 4
mov word [ebp - 0x52], ax
test ax, ax
je 0x404154
push ecx
push edi
lea edx, [ebp - 0x6c]
mov ecx, ebx
call fcn.00402ca0
add esp, 8
test eax, eax
je 0x404520
push edi
call fcn.0040f5f1
mov edx, dword [ebp - 0x38]
lea eax, [ebp - 0x6c]
add esp, 4
mov ecx, ebx
push eax
call fcn.00402a10
add esp, 4
test eax, eax
je 0x404520
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00409c39
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x52]
mov ecx, ebx
call fcn.00402930
mov ecx, dword [ebp - 8]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409c39
mov esp, ebp
pop ebp
ret
push esi
call fcn.0040c8b4
jmp 0x404151
call fcn.00409d69
int3