Function at 0x404c70
Capabilities:
Write 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 0x405390
push dword fs:[0]
mov dword fs:[0], esp
sub esp, 0x5c
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x28], edi
mov edi, ecx
mov dword [ebp - 0x24], esi
mov esi, dword [edi + 0x10]
test esi, esi
je 0x405377
cmp dword [edi + 4], 0
je 0x40535d
mov eax, dword [ebx + 0xc]
mov ecx, 0xffffffff
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], ecx
mov edx, dword [eax]
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x40], edi
mov edi, edx
movsx eax, byte [edx + 0xd]
test eax, eax
jne 0x404ce4
mov dword [ebp - 0x44], esi
mov ecx, dword [ebp - 0x3c]
jmp 0x404d5c
mov dword [ebp - 0x44], esi
mov ecx, dword [ebp - 0x3c]
mov edi, dword [edi + 8]
cmp edi, dword [ecx]
je 0x40534f
movsx edx, byte [edi + 0xd]
mov esi, edi
test edx, edx
je 0x404d19
mov eax, dword [edi + 8]
cmp dword [eax + 0x28], 0
je 0x404cea
mov dword [ebp - 0x5c], edx
mov dword [ebp - 0x3c], ecx
mov esi, dword [ebp - 0x44]
mov edx, dword [edi + 8]
jmp 0x404deb
mov eax, dword [edi]
cmp byte [eax + 0xd], 0
je 0x404d42
mov eax, dword [edi + 4]
cmp byte [eax + 0xd], 0
jne 0x404d39
cmp esi, dword [eax]
jne 0x404d39
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x404d2a
cmp byte [esi + 0xd], 0
cmovne eax, esi
jmp 0x404d56
mov esi, dword [eax + 8]
cmp byte [esi + 0xd], 0
jne 0x404d56
mov eax, esi
mov esi, dword [esi + 8]
cmp byte [esi + 0xd], 0
je 0x404d4b
cmp dword [eax + 0x28], 0
jne 0x404da3
mov eax, dword [edi]
cmp byte [eax + 0xd], 0
je 0x404d93
mov eax, dword [edi + 4]
cmp byte [eax + 0xd], 0
jne 0x404d8c
cmp edi, dword [eax]
jne 0x404d7c
mov edi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x404d6d
nop dword [eax]
movsx edx, byte [edi + 0xd]
test edx, edx
jne 0x404ced
mov edi, eax
jmp 0x404ced
mov edi, eax
mov eax, dword [eax + 8]
cmp byte [eax + 0xd], 0
je 0x404d93
jmp 0x404ced
mov dword [ebp - 0x5c], edx
mov eax, edi
mov edx, dword [edi]
mov dword [ebp - 0x3c], ecx
mov esi, dword [ebp - 0x44]
cmp byte [edx + 0xd], 0
je 0x404dd7
mov edx, dword [edi + 4]
cmp byte [edx + 0xd], 0
jne 0x404dce
cmp eax, dword [edx]
jne 0x404dce
mov eax, edx
mov edx, dword [edx + 4]
cmp byte [edx + 0xd], 0
je 0x404dbf
cmp byte [eax + 0xd], 0
cmovne edx, eax
jmp 0x404deb
mov eax, dword [edx + 8]
cmp byte [eax + 0xd], 0
jne 0x404deb
mov edx, eax
mov eax, dword [eax + 8]
cmp byte [eax + 0xd], 0
je 0x404de0
mov ecx, dword [ebp - 0x40]
mov eax, dword [ecx + 0x10]
sub eax, esi
add eax, dword [ecx + 8]
mov ecx, dword [edx + 0x20]
add ecx, 0x18
cmp eax, ecx
jb 0x40516f
mov eax, edi
cmp dword [ebp - 0x5c], 0
je 0x404e11
mov edx, dword [edi + 8]
jmp 0x404e4e
mov edx, dword [edi]
cmp byte [edx + 0xd], 0
je 0x404e3a
mov edx, dword [edi + 4]
cmp byte [edx + 0xd], 0
jne 0x404e31
cmp eax, dword [edx]
jne 0x404e31
mov eax, edx
mov edx, dword [edx + 4]
cmp byte [edx + 0xd], 0
je 0x404e22
cmp byte [eax + 0xd], 0
cmovne edx, eax
jmp 0x404e4e
mov eax, dword [edx + 8]
cmp byte [eax + 0xd], 0
jne 0x404e4e
mov edx, eax
mov eax, dword [eax + 8]
cmp byte [eax + 0xd], 0
je 0x404e43
mov eax, dword [edx + 0x20]
mov dword [esi], eax
mov eax, edi
cmp byte [edi + 0xd], 0
je 0x404e60
mov edx, dword [edi + 8]
jmp 0x404e9d
mov edx, dword [edi]
cmp byte [edx + 0xd], 0
je 0x404e89
mov edx, dword [edi + 4]
cmp byte [edx + 0xd], 0
jne 0x404e80
cmp eax, dword [edx]
jne 0x404e80
mov eax, edx
mov edx, dword [edx + 4]
cmp byte [edx + 0xd], 0
je 0x404e71
cmp byte [eax + 0xd], 0
cmovne edx, eax
jmp 0x404e9d
mov eax, dword [edx + 8]
cmp byte [eax + 0xd], 0
jne 0x404e9d
mov edx, eax
mov eax, dword [eax + 8]
cmp byte [eax + 0xd], 0
je 0x404e92
movq xmm0, qword [edx + 0x10]
mov edx, edi
movq qword [esi + 4], xmm0
cmp byte [edi + 0xd], 0
je 0x404eb4
mov eax, dword [edi + 8]
jmp 0x404ef1
mov eax, dword [edi]
cmp byte [eax + 0xd], 0
je 0x404edd
mov eax, dword [edi + 4]
cmp byte [eax + 0xd], 0
jne 0x404ed4
cmp edx, dword [eax]
jne 0x404ed4
mov edx, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x404ec5
cmp byte [edx + 0xd], 0
cmovne eax, edx
jmp 0x404ef1
mov edx, dword [eax + 8]
cmp byte [edx + 0xd], 0
jne 0x404ef1
mov eax, edx
mov edx, dword [edx + 8]
cmp byte [edx + 0xd], 0
je 0x404ee6
mov ecx, dword [eax + 0x18]
mov eax, dword [eax + 0x1c]
mov dword [esi + 0xc], ecx
mov dword [esi + 0x10], eax
movsx edx, byte [edi + 0xd]
mov dword [ebp - 0x1c], ecx
mov ecx, edi
mov dword [ebp - 0x20], eax
test edx, edx
je 0x404f12
mov eax, dword [edi + 8]
jmp 0x404f4f
mov eax, dword [edi]
cmp byte [eax + 0xd], 0
je 0x404f3b
mov eax, dword [edi + 4]
cmp byte [eax + 0xd], 0
jne 0x404f32
cmp ecx, dword [eax]
jne 0x404f32
mov ecx, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x404f23
cmp byte [ecx + 0xd], 0
cmovne eax, ecx
jmp 0x404f4f
mov ecx, dword [eax + 8]
cmp byte [ecx + 0xd], 0
jne 0x404f4f
mov eax, ecx
mov ecx, dword [ecx + 8]
cmp byte [ecx + 0xd], 0
je 0x404f44
mov ecx, dword [eax + 0x28]
mov eax, dword [eax + 0x20]
mov dword [ebp - 0x58], ecx
lea ecx, [esi + 0x14]
mov dword [ebp - 0x4c], ecx
test eax, eax
jle 0x404fd1
mov ecx, dword [ebx + 8]
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x44], esi
mov ecx, dword [ecx]
mov dword [ebp - 0x54], ecx
mov edi, dword [ebp - 0x58]
mov edx, dword [ebp - 0x4c]
mov esi, 0x3c
cmp eax, 0x3c
mov ecx, dword [ebp - 0x54]
cmovb esi, eax
mov dword [ebp - 0x50], esi
push esi
mov esi, edi
and edi, 0x3fff
shr esi, 0xe
shl edi, 6
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x4c], edx
mov ecx, dword [ecx + esi*4]
lea ecx, [ecx + edi + 4]
push ecx
push edx
call fcn.00407a30
mov edx, dword [ebp - 0x4c]
add esp, 0xc
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x50]
add edx, ecx
sub eax, ecx
mov ecx, dword [ebp - 0x54]
mov esi, dword [ecx + esi*4]
mov edi, dword [esi + edi]
test eax, eax
jg 0x404f76
mov edi, dword [ebp - 0x60]
mov esi, dword [ebp - 0x44]
movsx edx, byte [edi + 0xd]
mov eax, edi
test edx, edx
je 0x404fe6
mov ecx, dword [edi + 8]
mov eax, dword [ecx + 0x20]
lea esi, [esi + eax + 0x14]
jmp 0x405069
mov edx, dword [edi]
cmp byte [edx + 0xd], 0
je 0x40500f
mov edx, dword [edi + 4]
cmp byte [edx + 0xd], 0
jne 0x405006
cmp eax, dword [edx]
jne 0x405006
mov eax, edx
mov edx, dword [edx + 4]
cmp byte [edx + 0xd], 0
je 0x404ff7
cmp byte [eax + 0xd], 0
cmovne edx, eax
jmp 0x405023
mov eax, dword [edx + 8]
cmp byte [eax + 0xd], 0
jne 0x405023
mov edx, eax
mov eax, dword [eax + 8]
cmp byte [eax + 0xd], 0
je 0x405018
mov ecx, dword [edi]
mov eax, dword [edx + 0x20]
cmp byte [ecx + 0xd], 0
lea esi, [esi + eax + 0x14]
mov eax, edi
je 0x405055
mov ecx, dword [edi + 4]
cmp byte [ecx + 0xd], 0
jne 0x40504c
cmp eax, dword [ecx]
jne 0x40504c
mov eax, ecx
mov ecx, dword [ecx + 4]
cmp byte [ecx + 0xd], 0
je 0x40503d
cmp byte [eax + 0xd], 0
cmovne ecx, eax
jmp 0x405069
mov eax, dword [ecx + 8]
cmp byte [eax + 0xd], 0
jne 0x405069
mov ecx, eax
mov eax, dword [eax + 8]
cmp byte [eax + 0xd], 0
je 0x40505e
mov edx, dword [ecx + 0x28]
test edx, edx
je 0x4050ca
mov eax, dword [ebx + 8]
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0x44], esi
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x60], edi
mov ecx, dword [ebx + 8]
mov esi, edx
shr esi, 0xe
mov edi, edx
and edi, 0x3fff
mov ecx, dword [ecx]
shl edi, 6
mov esi, dword [ecx + esi*4]
mov ecx, dword [edi + esi]
mov dword [edi + esi], eax
mov eax, edx
mov edi, dword [ebx + 8]
dec dword [edi + 0x10]
mov dword [edi + 0xc], edx
mov edx, ecx
test ecx, ecx
jne 0x40507f
mov ecx, dword [ebp - 0x64]
mov esi, dword [ebp - 0x44]
mov edi, dword [ebp - 0x60]
cmp dword [ecx + 0x28], 0
je 0x4050ca
mov eax, dword [ecx + 0x20]
test eax, eax
lea ecx, [eax + 0x10]
cmova eax, ecx
jmp 0x4050cc
xor eax, eax
movd xmm2, eax
mov eax, edi
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
cmp byte [edi + 0xd], 0
je 0x405115
mov edx, dword [edi + 8]
jmp 0x405152
mov edx, dword [edi]
cmp byte [edx + 0xd], 0
je 0x40513e
mov edx, dword [edi + 4]
cmp byte [edx + 0xd], 0
jne 0x405135
cmp eax, dword [edx]
jne 0x405135
mov eax, edx
mov edx, dword [edx + 4]
cmp byte [edx + 0xd], 0
je 0x405126
cmp byte [eax + 0xd], 0
cmovne edx, eax
jmp 0x405152
mov eax, dword [edx + 8]
cmp byte [eax + 0xd], 0
jne 0x405152
mov edx, eax
mov eax, dword [eax + 8]
cmp byte [eax + 0xd], 0
je 0x405147
add edx, 0x10
push edx
mov ecx, dword [ebx + 0xc]
call fcn.004053a0
mov ecx, dword [ebx + 0xc]
movsx eax, byte [edi + 0xd]
mov ecx, dword [ecx]
mov dword [ebp - 0x3c], ecx
jmp 0x404cd8
mov edi, dword [ebp - 0x40]
mov dword [esi], 0
lea edx, [edi + 0x14]
cmp dword [edx + 0x10], 0
jne 0x4052d0
mov eax, dword [edi + 0x28]
lea edx, [eax + 1]
mov dword [edi + 0x28], edx
movd xmm0, eax
add esp, 0xfffffff0
pxor xmm1, xmm1
movq xmm3, qword [edi + 8]
movss xmm1, xmm0
movaps xmm2, xmm1
movdqa xmm4, xmm3
psrlq xmm2, 0x20
psrlq xmm4, 0x20
pmuludq xmm4, xmm1
pmuludq xmm2, xmm3
pmuludq xmm3, xmm1
paddq xmm4, xmm2
psllq xmm4, 0x20
paddq xmm4, xmm3
mov eax, dword [edi + 4]
movups xmmword [ebp - 0x38], xmm1
mov dword [esp], eax
movq qword [esp + 4], xmm4
mov dword [esp + 0xc], 0
call fcn.0040f358
push dword [edi + 4]
push dword [edi + 8]
push 1
push dword [edi + 0x10]
call fcn.0040f03f
add esp, 0x20
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x3c]
xor ecx, ecx
mov edx, dword [ebp - 0x20]
movq xmm1, qword [edi + 0x38]
movq xmm0, qword [edi + 8]
paddq xmm1, xmm0
mov dword [ebp - 0x54], edx
mov edx, dword [esi + 4]
movq qword [edi + 0x38], xmm1
movups xmm2, xmmword [ebp - 0x38]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x48], ecx
movq qword [ebp - 0x60], xmm2
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x50], ecx
cmp byte [edx + 0xd], 0
jne 0x4052c9
mov eax, dword [ebp - 0x1c]
mov ecx, edx
sub eax, dword [edx + 0x18]
mov esi, dword [ebp - 0x20]
sbb esi, dword [edx + 0x1c]
jae 0x40525a
mov eax, 1
jmp 0x40525c
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 0x405243
mov dword [ebp - 0x3c], ecx
add esp, 0xffffffec
lea esi, [ebp - 0x64]
mov dl, byte [ebp - 0x40]
mov dword [esp], esi
lea ecx, [esp + 0x10]
mov dword [esp + 4], eax
lea eax, [ebp - 0x60]
mov edi, dword [ebp - 0x3c]
mov dword [esp + 8], edi
mov dword [esp + 0xc], eax
mov byte [ecx], dl
mov ecx, dword [ebx + 0xc]
call fcn.00404770
mov dword [ebp - 4], 0xffffffff
mov edi, dword [ebp - 0x28]
mov esi, dword [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8
mov eax, 1
jmp 0x405271
mov eax, dword [edx + 0x10]
mov ecx, dword [edx + 0xc]
mov dword [ebp - 0x64], eax
test edx, edx
je 0x4052ff
mov eax, dword [edx]
test eax, eax
je 0x4052ff
mov eax, dword [eax]
test eax, eax
je 0x4052ff
mov eax, dword [eax]
test eax, eax
je 0x4052ff
mov eax, dword [eax]
test eax, eax
je 0x4052ff
mov eax, dword [eax]
test eax, eax
je 0x4052ff
mov eax, dword [eax]
jmp 0x405301
xor eax, eax
mov dword [ebp - 0x40], edi
mov edi, dword [ebp - 0x64]
lea ecx, [ecx + edi - 1]
mov edi, dword [eax + 8]
mov esi, ecx
dec edi
shr ecx, 2
and esi, 3
and ecx, edi
mov eax, dword [eax + 4]
mov edi, dword [ebp - 0x40]
mov eax, dword [eax + ecx*4]
mov ecx, dword [ebp - 0x64]
mov eax, dword [eax + esi*4]
dec ecx
mov dword [edx + 0x10], ecx
je 0x40533b
mov edx, dword [ebx + 0xc]
mov ecx, dword [edx]
mov dword [ebp - 0x3c], ecx
jmp 0x40518e
mov dword [edx + 0xc], 0
mov edx, dword [ebx + 0xc]
mov ecx, dword [edx]
mov dword [ebp - 0x3c], ecx
jmp 0x40518e
mov dword [ebp - 0x3c], ecx
mov esi, dword [ebp - 0x44]
mov edi, dword [ebp - 0x40]
jmp 0x405172
push 0x422b34
push dword [edi]
call fcn.0040e821
add esp, 8
mov dword [edi + 4], eax
mov esi, dword [edi + 0x10]
jmp 0x404cbc
push dword [edi + 8]
call fcn.0040abcb
mov esi, eax
add esp, 4
mov dword [edi + 0x10], esi
jmp 0x404cb2