Function at 0x4038d0
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, esp
and esp, 0xfffffff0
push ebp
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x404310
push dword fs:[0]
mov dword fs:[0], esp
sub esp, 0xac
mov dword [ebp - 0x10], esp
mov dword [ebp - 0xb8], ebx
mov dword [ebp - 0x4c], edi
mov edi, dword [ebx + 0x1c]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x44], edi
mov ecx, dword [ebx + 0x24]
mov edi, dword [ebx + 0x2c]
movzx eax, al
mov dword [ebp - 0x1c], eax
mov eax, edi
mov dword [ebp - 0x28], ecx
mov ecx, dword [ebx + 0x14]
mov dword [ebp - 0x20], edx
sub ecx, edi
cdq
mov dword [ebp - 0x48], esi
mov esi, dword [ebx + 0x18]
mov eax, dword [ebx + 0x30]
mov dword [ebp - 0x38], esi
sbb esi, edx
cdq
add eax, ecx
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x2c], ecx
adc edx, esi
mov dword [ebp - 0x30], esi
mov eax, dword [ebx + 0x1c]
mov ecx, dword [ebx + 0x14]
mov esi, dword [ebx + 0x18]
mov dword [ebp - 0x3c], edx
mov edx, eax
neg eax
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x94], esi
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x98], edx
mov dword [ebp - 0x70], ecx
mov eax, dword [ebx + 0x20]
mov edx, dword [ebp - 0x68]
add eax, edx
sar eax, 2
cmp dword [ebp - 0x1c], 0
je 0x40398e
cmp eax, 3
jl 0x403c12
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x6c], eax
jmp 0x40399e
cmp eax, 4
jl 0x403c12
mov dword [ebp - 0x6c], 1
mov edi, dword [ebp - 0x98]
xor edx, edx
mov ecx, dword [ebp - 0x68]
cmp dword [ebp - 0x1c], 0
mov esi, dword [edi]
mov eax, dword [edi + 4]
lea ecx, [ecx - 8]
lea edi, [edi + 8]
jne 0x4039cc
mov edi, dword [ebp - 0x98]
mov ecx, dword [ebp - 0x68]
mov edx, dword [edi + 8]
lea edi, [edi + 0xc]
lea ecx, [ecx - 0xc]
push edx
push eax
push 0
mov eax, dword [ebp - 0x6c]
lea edx, [ecx - 4]
push eax
imul eax, dword [edi]
lea ecx, [edi + 4]
add esi, dword [ebp - 0x70]
mov edi, dword [ebp - 0x94]
mov dword [ebp - 0x68], edx
adc edi, 0
add eax, dword [ebp - 0x20]
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x98], ecx
call fcn.0040ac20
add eax, esi
mov ecx, esi
adc edx, edi
sub ecx, dword [ebp - 0x70]
mov ecx, edi
sbb ecx, dword [ebp - 0x94]
jb 0x403ffd
mov ecx, esi
sub ecx, dword [ebp - 0x40]
mov ecx, edi
sbb ecx, dword [ebp - 0x3c]
jae 0x403ffd
mov dword [ebp - 0xa0], edx
mov edx, dword [ebp - 0x40]
sub edx, esi
mov ecx, dword [ebp - 0x3c]
sbb ecx, edi
mov dword [ebp - 0xa4], ecx
mov ecx, dword [ebp - 0x6c]
sub ecx, edx
mov dword [ebp - 0xa8], edi
mov edi, 0
mov edx, dword [ebp - 0xa0]
sbb edi, dword [ebp - 0xa4]
mov dword [ebp - 0xac], edi
mov edi, dword [ebp - 0xa8]
jb 0x403a70
or ecx, dword [ebp - 0xac]
jne 0x403ffd
mov ecx, eax
sub ecx, esi
mov dword [ebp - 0xb0], ecx
mov ecx, edx
sbb ecx, edi
mov dword [ebp - 0xb4], ecx
jb 0x403ffd
mov ecx, dword [ebp - 0xb0]
or ecx, dword [ebp - 0xb4]
je 0x403ffd
mov ecx, dword [ebp - 0x6c]
mov dword [ebp - 0x80], ecx
mov ecx, eax
sub ecx, dword [ebp - 0x40]
mov ecx, edx
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x84], edx
mov dword [ebp - 0x90], esi
mov dword [ebp - 0x8c], edi
sbb ecx, dword [ebp - 0x3c]
jae 0x403c04
mov dword [ebp - 4], 0
mov ecx, dword [ebx + 0x3c]
mov esi, dword [ecx]
mov ecx, dword [esi + 4]
cmp byte [ecx + 0xd], 0
jne 0x4042f8
mov dword [ebp - 0xa0], edx
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0x9c]
mov esi, ecx
sub eax, dword [ecx + 0x18]
mov edx, dword [ebp - 0xa0]
sbb edx, dword [ecx + 0x1c]
jae 0x403b13
mov eax, 1
jmp 0x403b15
xor eax, eax
mov edi, ecx
test eax, eax
mov edx, dword [ecx + 8]
mov ecx, edx
cmovne ecx, dword [edi]
cmp byte [ecx + 0xd], 0
je 0x403af6
add esp, 0xffffffec
lea edi, [ebp - 0x50]
mov ecx, dword [ebx + 0x3c]
mov dword [esp], edi
lea edx, [esp + 0x10]
mov dword [esp + 4], eax
mov al, byte [ebp - 0x64]
mov dword [esp + 8], esi
lea esi, [ebp - 0x90]
mov dword [esp + 0xc], esi
mov byte [edx], al
call fcn.00404770
mov dword [ebp - 4], 0xffffffff
mov eax, dword [0x44f858]
add eax, 1
mov ecx, eax
mov esi, dword [0x44f85c]
adc esi, 0
movq xmm1, qword [0x44f860]
mov edx, esi
movq xmm0, qword [0x422710]
sub ecx, dword [0x44f868]
paddq xmm1, xmm0
movq qword [0x44f860], xmm1
mov dword [0x44f858], eax
mov dword [0x44f85c], esi
sbb edx, dword [0x44f86c]
jb 0x403ba8
or ecx, edx
jne 0x403bb3
mov eax, dword [0x44f868]
mov esi, dword [0x44f86c]
mov ecx, dword [0x44f870]
mov edx, ecx
sub edx, dword [0x44f878]
mov dword [0x44f86c], esi
mov esi, dword [0x44f874]
mov dword [0x44f868], eax
mov eax, esi
sbb eax, dword [0x44f87c]
jb 0x403be0
or edx, eax
jne 0x403bec
mov ecx, dword [0x44f878]
mov esi, dword [0x44f87c]
mov dword [0x44f87c], esi
mov dword [0x44f878], ecx
mov esi, dword [ebp - 0x90]
mov edi, dword [ebp - 0x8c]
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x94], edi
jmp 0x40396c
mov esi, dword [ebx + 0x3c]
mov ecx, dword [esi]
mov esi, dword [ecx]
mov dword [ebp - 0x5c], esi
lea eax, [esi + 0x10]
mov dword [ebp - 0x58], eax
mov edx, dword [eax + 8]
mov dword [ebp - 0x54], edx
sub edx, dword [ebp - 0x40]
mov ecx, dword [eax + 0xc]
mov edi, ecx
sbb edi, dword [ebp - 0x3c]
jae 0x403f4c
mov edi, dword [ebp - 0x34]
mov edx, dword [esi + 0x20]
mov dword [ebp - 0x60], edx
test edx, edx
jne 0x403c60
mov ecx, dword [ebx + 0x38]
lea edx, [ebp - 0x5c]
push edx
push dword [ebx + 0x3c]
push dword [ebx + 0x34]
call fcn.004049b0
mov esi, dword [ebp - 0x5c]
jmp 0x403f0e
mov dword [ebp - 0x98], esi
mov eax, edi
mov esi, dword [ebp - 0x54]
mov edx, esi
sub edx, dword [ebx + 0x14]
add edx, dword [ebx + 0x2c]
sub edx, edi
mov dword [ebp - 0x94], edx
cdq
mov eax, edx
mov edx, dword [ebp - 0x2c]
add edx, edi
adc eax, dword [ebp - 0x30]
sub esi, edx
mov esi, dword [ebp - 0x98]
sbb ecx, eax
jb 0x403ffd
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x94]
add edx, ecx
mov dword [ebp - 0x9c], edx
cmp edx, dword [ebx + 0x28]
ja 0x403ffd
mov edx, dword [ebp - 0x60]
add edx, edi
add edx, dword [ebp - 0x94]
cmp edx, dword [ebx + 0x30]
ja 0x403ffd
push dword [ebp - 0x94]
push dword [ebp - 0x28]
push edi
call fcn.00407a30
add esp, 0xc
mov ecx, dword [ebp - 0x94]
mov edx, dword [ebp - 0x9c]
mov dword [ebp - 0x28], edx
lea edx, [edi + ecx]
mov ecx, dword [esi + 0x20]
mov dword [ebp - 0xa0], edx
cmp ecx, dword [ebx + 0x40]
jb 0x403d5a
mov eax, dword [esi + 0x10]
mov dword [ebp - 0xb4], eax
sub eax, dword [ebx + 0x14]
mov edx, dword [esi + 0x14]
mov eax, edx
sbb eax, dword [ebp - 0x38]
jae 0x403d5a
push 0
push edx
push dword [ebp - 0xb4]
push dword [ebp - 0x24]
call fcn.0040f358
push dword [ebp - 0x24]
push dword [esi + 0x20]
push 1
push dword [ebp - 0xa0]
call fcn.0040ed7e
add esp, 0x20
movq xmm1, qword [0x44f880]
movq xmm0, qword [0x422710]
paddq xmm1, xmm0
movq qword [0x44f880], xmm1
mov edi, dword [esi + 0x20]
mov edx, dword [esi + 0x28]
jmp 0x403e72
mov edx, dword [esi + 0x28]
test edx, edx
je 0x403de7
mov eax, dword [ebp - 0xa0]
test ecx, ecx
jle 0x404016
mov edi, dword [ebx + 0x34]
mov dword [ebp - 0x98], esi
mov esi, ecx
mov edi, dword [edi]
mov dword [ebp - 0x70], edi
mov edi, edx
mov edx, 0x3c
cmp esi, 0x3c
mov ecx, dword [ebp - 0x70]
cmovb edx, esi
mov dword [ebp - 0x6c], edx
push edx
mov edx, edi
shr edi, 0xe
and edx, 0x3fff
shl edx, 6
mov dword [ebp - 0x68], edx
mov dword [ebp - 0x64], eax
mov ecx, dword [ecx + edi*4]
lea ecx, [edx + ecx + 4]
push ecx
push eax
call fcn.00407a30
mov eax, dword [ebp - 0x64]
add esp, 0xc
mov edx, dword [ebp - 0x68]
mov ecx, dword [ebp - 0x6c]
add eax, ecx
sub esi, ecx
mov ecx, dword [ebp - 0x70]
mov edi, dword [ecx + edi*4]
mov edi, dword [edi + edx]
test esi, esi
jg 0x403d85
mov esi, dword [ebp - 0x98]
mov edi, dword [esi + 0x20]
mov edx, dword [esi + 0x28]
jmp 0x403e72
mov edx, dword [esi + 0x10]
sub edx, dword [ebx + 0x14]
add edx, dword [ebx + 0x2c]
mov dword [ebp - 0xa4], edx
test ecx, ecx
je 0x4042e2
cmp ecx, 0x60
jbe 0x404250
mov edx, dword [ebp - 0x94]
mov eax, 1
mov dword [ebp - 0x98], esi
mov esi, dword [ebp - 0xa4]
add edx, edi
mov dword [ebp - 0xb0], edx
sub esi, edx
mov edx, esi
neg edx
cmp edx, ecx
mov edx, 0
cmovg edx, eax
cmp esi, ecx
mov esi, 0
cmovg esi, eax
or edx, esi
mov esi, dword [ebp - 0x98]
je 0x404250
push ecx
push dword [ebp - 0xa4]
push dword [ebp - 0xb0]
call fcn.00407a30
add esp, 0xc
mov edx, dword [ebp - 0x5c]
add edx, 0x10
mov dword [ebp - 0x58], edx
mov edi, dword [edx + 0x10]
mov edx, dword [edx + 0x18]
add edi, dword [ebp - 0xa0]
test edx, edx
je 0x403ec3
mov ecx, dword [ebx + 0x34]
mov dword [ebp - 0x34], edi
mov ecx, dword [ecx + 0xc]
mov eax, dword [ebx + 0x34]
mov esi, edx
shr esi, 0xe
mov edi, edx
and edi, 0x3fff
mov eax, dword [eax]
shl edi, 6
mov esi, dword [eax + esi*4]
mov eax, dword [edi + esi]
mov dword [edi + esi], ecx
mov ecx, edx
mov esi, dword [ebx + 0x34]
dec dword [esi + 0x10]
mov dword [esi + 0xc], edx
mov edx, eax
test eax, eax
jne 0x403e85
mov edx, dword [ebp - 0x58]
mov edi, dword [ebp - 0x34]
mov esi, dword [ebp - 0x5c]
cmp dword [edx + 0x18], 0
jne 0x403ec7
xor edx, edx
jmp 0x403ed2
mov edx, dword [edx + 0x10]
test edx, edx
lea ecx, [edx + 0x10]
cmova edx, ecx
movd xmm2, edx
pxor xmm3, xmm3
movq xmm1, qword [0x44f858]
movss xmm3, xmm2
movq xmm0, qword [0x422708]
movq xmm4, qword [0x44f870]
paddq xmm1, xmm0
psubq xmm4, xmm3
movq qword [0x44f858], xmm1
movq qword [0x44f870], xmm4
push esi
mov ecx, dword [ebx + 0x3c]
call fcn.00404320
push 0x30
push eax
call fcn.0040ac04
add esp, 8
mov esi, dword [ebx + 0x3c]
mov ecx, dword [esi]
mov esi, dword [ecx]
mov dword [ebp - 0x5c], esi
lea edx, [esi + 0x10]
mov dword [ebp - 0x58], edx
mov eax, dword [edx + 8]
mov dword [ebp - 0x54], eax
sub eax, dword [ebp - 0x40]
mov ecx, dword [edx + 0xc]
mov edx, ecx
sbb edx, dword [ebp - 0x3c]
jb 0x403c3c
mov dword [ebp - 0x34], edi
mov edx, dword [ebx + 0x28]
mov eax, dword [ebx + 0x30]
sub edx, dword [ebp - 0x28]
sub eax, dword [ebp - 0x34]
cmp edx, eax
jne 0x403ffd
push edx
push dword [ebp - 0x28]
push dword [ebp - 0x34]
call fcn.00407a30
add esp, 0xc
mov esi, dword [ebx + 0x14]
cmp dword [ebp - 0x1c], 0
je 0x403f91
mov eax, dword [ebp - 0x44]
neg eax
add eax, dword [ebx + 0x20]
sar eax, 2
cmp eax, 3
jl 0x40401e
mov edi, dword [ebp - 0x20]
jmp 0x403fa6
mov eax, dword [ebp - 0x44]
neg eax
add eax, dword [ebx + 0x20]
sar eax, 2
cmp eax, 4
jl 0x40401e
mov edi, 1
mov edx, dword [ebp - 0x44]
cmp dword [ebp - 0x1c], 0
mov eax, dword [edx + 4]
mov ecx, dword [edx]
lea edx, [edx + 8]
mov dword [ebp - 0x64], eax
mov eax, 0
jne 0x403fc8
mov edx, dword [ebp - 0x44]
mov eax, dword [edx + 8]
lea edx, [edx + 0xc]
push eax
push dword [ebp - 0x64]
push 0
push edi
imul edi, dword [edx]
add esi, ecx
adc dword [ebp - 0x38], 0
lea eax, [edx + 4]
add edi, dword [ebp - 0x20]
mov dword [ebp - 0x44], eax
call fcn.0040ac20
add eax, esi
mov ecx, eax
adc edx, dword [ebp - 0x38]
sub ecx, dword [ebp - 0x40]
mov ecx, edx
sbb ecx, dword [ebp - 0x3c]
jb 0x403f72
jmp 0x40403a
mov edi, dword [ebp - 0x4c]
xor eax, eax
mov esi, dword [ebp - 0x48]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
lea edi, [eax + ecx]
jmp 0x403e7c
mov edi, dword [ebp - 0x4c]
mov eax, 1
mov esi, dword [ebp - 0x48]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x98], 0
mov dword [ebp - 0xa0], edi
mov dword [ebp - 0xa4], edx
mov dword [ebp - 0xb0], esi
mov dword [ebp - 0xac], eax
cmp edi, dword [ebx + 0x40]
jb 0x4041c5
mov ecx, dword [0x44f858]
add ecx, 1
mov edx, ecx
mov esi, dword [0x44f85c]
adc esi, 0
movq xmm1, qword [0x44f860]
mov eax, esi
movq xmm0, qword [0x422710]
sub edx, dword [0x44f868]
paddq xmm1, xmm0
movq qword [0x44f860], xmm1
mov dword [0x44f858], ecx
mov dword [0x44f85c], esi
sbb eax, dword [0x44f86c]
jb 0x4040be
or edx, eax
jne 0x4040ca
mov ecx, dword [0x44f868]
mov esi, dword [0x44f86c]
mov dword [0x44f868], ecx
mov ecx, dword [0x44f870]
mov edx, ecx
sub edx, dword [0x44f878]
mov dword [0x44f86c], esi
mov esi, dword [0x44f874]
mov eax, esi
sbb eax, dword [0x44f87c]
jb 0x4040f8
or edx, eax
jne 0x404104
mov ecx, dword [0x44f878]
mov esi, dword [0x44f87c]
mov dword [0x44f878], ecx
mov dword [0x44f87c], esi
mov dword [ebp - 4], 2
mov eax, dword [ebx + 0x3c]
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
cmp byte [edx + 0xd], 0
jne 0x4041be
lea eax, [ebp - 0xa8]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], ecx
mov eax, dword [ebp - 0x6c]
mov ecx, edx
sub eax, dword [edx + 0x18]
mov esi, dword [ebp - 0x70]
sbb esi, dword [edx + 0x1c]
jae 0x404151
mov eax, 1
jmp 0x404153
xor eax, eax
mov edi, edx
test eax, eax
mov esi, dword [edx + 8]
mov edx, esi
cmovne edx, dword [edi]
cmp byte [edx + 0xd], 0
je 0x40413a
add esp, 0xffffffec
lea esi, [ebp - 0xb4]
lea edi, [ebp - 0xb0]
mov dword [esp], esi
lea edx, [esp + 0x10]
mov dword [esp + 4], eax
mov al, byte [ebp - 0x68]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], edi
mov ecx, dword [ebx + 0x3c]
mov byte [edx], al
call fcn.00404770
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0xac]
mov esi, dword [ebp - 0xb0]
mov dword [ebp - 0x38], eax
jmp 0x403f72
mov eax, 1
jmp 0x404165
mov ecx, dword [ebx + 0x34]
mov eax, dword [ecx + 0x10]
lea edx, [eax*4]
shl eax, 6
sub eax, edx
mov edx, dword [ecx + 0x14]
cmp eax, edx
cmova edx, eax
sub edx, eax
sub edi, edx
mov edx, 0
sbb edx, edx
jb 0x4041f0
or edi, edx
jne 0x40420a
sub esi, dword [ebx + 0x14]
lea ecx, [ebp - 0xb0]
add esi, dword [ebx + 0x2c]
push esi
push dword [ebx + 0x34]
call fcn.004054c0
jmp 0x404110
mov esi, dword [ebx + 0x34]
mov edi, dword [ebx + 0x3c]
push edi
push esi
mov ecx, dword [ebx + 0x38]
call fcn.00404c70
mov edx, dword [esi + 0x10]
mov eax, dword [ebp - 0xa0]
lea ecx, [edx*4]
shl edx, 6
sub edx, ecx
mov ecx, dword [esi + 0x14]
cmp edx, ecx
cmova ecx, edx
sub ecx, edx
sub eax, ecx
mov ecx, 0
sbb ecx, ecx
jb 0x404248
or eax, ecx
jne 0x404210
mov esi, dword [ebp - 0xb0]
jmp 0x4041f0
mov edx, ecx
shr edx, 1
mov dword [ebp - 0xa8], edx
test edx, edx
jbe 0x4042db
mov edx, dword [ebp - 0x94]
xor eax, eax
mov dword [ebp - 0x98], esi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0xac], ecx
add edx, edi
mov esi, dword [ebp - 0xa8]
mov edi, dword [ebp - 0xa4]
movzx ecx, byte [edi + eax*2]
mov byte [edx + eax*2], cl
movzx ecx, byte [edi + eax*2 + 1]
mov byte [edx + eax*2 + 1], cl
inc eax
cmp eax, esi
jb 0x404283
mov esi, dword [ebp - 0x98]
lea edx, [eax + eax + 1]
mov ecx, dword [ebp - 0xac]
mov edi, dword [ebp - 0x34]
dec edx
cmp edx, ecx
jae 0x4042d0
mov ecx, dword [ebp - 0x94]
add ecx, edi
mov edi, dword [ebp - 0xa4]
movzx eax, byte [edx + edi]
mov byte [edx + ecx], al
mov edi, dword [esi + 0x20]
mov edx, dword [esi + 0x28]
jmp 0x403e72
mov edi, dword [esi + 0x20]
mov edx, dword [esi + 0x28]
jmp 0x403e72
mov edx, 1
jmp 0x4042ab
mov edi, dword [ebp - 0xa0]
jmp 0x403ec3
mov eax, 1
jmp 0x403b27