Function at 0x4970b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x641a90]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x210], esi
push dword [esi]
push 1
push 6
push eax
call fcn.00595b79
add esp, 0x10
test eax, eax
jne 0x4970fc
pop esi
mov eax, 4
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005920c1
mov esp, ebp
pop ebp
ret
push 4
lea eax, [ebp - 0xc]
push str.NITF
push eax
call fcn.00596360
add esp, 0xc
test eax, eax
je 0x497128
pop esi
mov eax, 2
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005920c1
mov esp, ebp
pop ebp
ret
push edi
push 0x2000
call fcn.00593e38
mov edi, eax
add esp, 4
mov dword [ebp - 0x220], edi
test edi, edi
je 0x497288
push 0
push 0
push dword [esi]
call fcn.00595cb4
push dword [esi]
push 0x11e
push 1
push edi
call fcn.00595b79
push dword [esi]
mov dword [ebp - 0x214], eax
call fcn.00595867
add esp, 0x20
test eax, eax
jne 0x497bf7
push dword [esi]
call fcn.0059588d
add esp, 4
test eax, eax
jne 0x497bf7
mov eax, dword [ebp - 0x214]
cmp eax, 0x11e
jl 0x497bf7
lea esi, [eax + edi]
push 6
lea eax, [esi - 6]
push str.999998
push eax
call fcn.00596360
test eax, eax
mov edx, 0x72
mov eax, dword [ebp - 0x210]
mov ecx, 0x4a
cmove ecx, edx
mov dword [ebp - 0x218], ecx
push dword [eax]
push ecx
push 1
push esi
call fcn.00595b79
mov esi, dword [ebp - 0x210]
add dword [ebp - 0x214], eax
mov dword [ebp - 0x21c], eax
push dword [esi]
call fcn.00595867
add esp, 0x20
test eax, eax
jne 0x497bf7
push dword [esi]
call fcn.0059588d
add esp, 4
test eax, eax
jne 0x497bf7
mov ecx, dword [ebp - 0x218]
cmp dword [ebp - 0x21c], ecx
jl 0x497bf7
mov ecx, dword [ebp - 0x214]
mov eax, dword [ecx + edi - 6]
mov dword [ebp - 0x20c], eax
mov ax, word [ecx + edi - 2]
mov word [ebp - 0x208], ax
lea eax, [ebp - 0x20c]
push eax
mov byte [ebp - 0x206], 0
call fcn.00593e1b
mov ecx, eax
add esp, 4
mov eax, dword [ebp - 0x214]
mov dword [ebx + 0x184], ecx
cmp ecx, eax
jl 0x497bf7
cmp ecx, 0x2000
jle 0x4972a4
lea eax, [ecx + 0x1000]
push eax
push edi
call fcn.00593eca
mov edi, eax
mov dword [ebp - 0x220], eax
add esp, 8
test edi, edi
jne 0x49729e
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005920c1
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x214]
push dword [esi]
mov ecx, dword [ebx + 0x184]
sub ecx, eax
add eax, edi
push ecx
push 1
push eax
mov dword [ebp - 0x218], ecx
call fcn.00595b79
push dword [esi]
mov dword [ebp - 0x21c], eax
call fcn.00595867
add esp, 0x14
test eax, eax
jne 0x497bf7
push dword [esi]
call fcn.0059588d
add esp, 4
test eax, eax
jne 0x497bf7
mov eax, dword [ebp - 0x21c]
cmp eax, dword [ebp - 0x218]
jl 0x497bf7
movq xmm0, qword [edi]
lea esi, [edi + 9]
push 4
movq qword [ebx], xmm0
mov al, byte [edi + 8]
push str.NITF
push ebx
mov byte [ebx + 8], al
call fcn.00596360
add esp, 0xc
test eax, eax
jne 0x497bf7
movzx eax, word [esi]
lea ecx, [ebx + 0x118]
mov word [ebx + 9], ax
mov eax, dword [esi + 2]
mov dword [ebx + 0xb], eax
movq xmm0, qword [esi + 6]
movq qword [ebx + 0xf], xmm0
movzx eax, word [esi + 0xe]
mov word [ebx + 0x17], ax
movq xmm0, qword [esi + 0x10]
movq qword [ebx + 0x19], xmm0
mov eax, dword [esi + 0x18]
mov dword [ebx + 0x21], eax
movzx eax, word [esi + 0x1c]
mov word [ebx + 0x25], ax
movdqu xmm0, xmmword [esi + 0x1e]
push 6
push str.999998
movdqu xmmword [ebx + 0x27], xmm0
push ecx
movdqu xmm0, xmmword [esi + 0x2e]
movdqu xmmword [ebx + 0x37], xmm0
movdqu xmm0, xmmword [esi + 0x3e]
movdqu xmmword [ebx + 0x47], xmm0
movdqu xmm0, xmmword [esi + 0x4e]
movdqu xmmword [ebx + 0x57], xmm0
movdqu xmm0, xmmword [esi + 0x5e]
movdqu xmmword [ebx + 0x67], xmm0
mov al, byte [esi + 0x6e]
mov byte [ebx + 0x77], al
movdqu xmm0, xmmword [esi + 0x6f]
movdqu xmmword [ebx + 0x78], xmm0
movdqu xmm0, xmmword [esi + 0x7f]
movdqu xmmword [ebx + 0x88], xmm0
movq xmm0, qword [esi + 0x8f]
movq qword [ebx + 0x98], xmm0
movdqu xmm0, xmmword [esi + 0x97]
movdqu xmmword [ebx + 0xa0], xmm0
movdqu xmm0, xmmword [esi + 0xa7]
movdqu xmmword [ebx + 0xb0], xmm0
movq xmm0, qword [esi + 0xb7]
movq qword [ebx + 0xc0], xmm0
movdqu xmm0, xmmword [esi + 0xbf]
movdqu xmmword [ebx + 0xc8], xmm0
movdqu xmm0, xmmword [esi + 0xcf]
movdqu xmmword [ebx + 0xd8], xmm0
movq xmm0, qword [esi + 0xdf]
movq qword [ebx + 0xe8], xmm0
movdqu xmm0, xmmword [esi + 0xe7]
movdqu xmmword [ebx + 0xf0], xmm0
mov eax, dword [esi + 0xf7]
mov dword [ebx + 0x100], eax
movdqu xmm0, xmmword [esi + 0xfb]
movdqu xmmword [ebx + 0x104], xmm0
mov eax, dword [esi + 0x10b]
mov dword [ebx + 0x114], eax
mov eax, dword [esi + 0x10f]
mov dword [ecx], eax
movzx eax, word [esi + 0x113]
add esi, 0x115
mov word [ecx + 4], ax
call fcn.00596360
add esp, 0xc
test eax, eax
jne 0x4974ae
movdqu xmm0, xmmword [esi]
movdqu xmmword [ebx + 0x11e], xmm0
movdqu xmm0, xmmword [esi + 0x10]
movdqu xmmword [ebx + 0x12e], xmm0
movq xmm0, qword [esi + 0x20]
add esi, 0x28
movq qword [ebx + 0x13e], xmm0
mov eax, dword [esi]
mov dword [ebp - 0x20c], eax
movzx eax, byte [esi + 4]
mov byte [ebp - 0x208], al
lea eax, [ebp - 0x20c]
push eax
mov byte [ebp - 0x207], 0
call fcn.00593e1b
mov dword [ebx + 0x148], eax
mov eax, dword [esi + 5]
mov dword [ebp - 0x20c], eax
movzx eax, byte [esi + 9]
mov byte [ebp - 0x208], al
lea eax, [ebp - 0x20c]
push eax
mov byte [ebp - 0x207], 0
call fcn.00593e1b
mov dword [ebx + 0x14c], eax
movzx eax, byte [esi + 0xa]
mov byte [ebx + 0x150], al
movdqu xmm0, xmmword [esi + 0xb]
movdqu xmmword [ebx + 0x151], xmm0
movq xmm0, qword [esi + 0x1b]
movq qword [ebx + 0x161], xmm0
movzx eax, word [esi + 0x23]
mov word [ebx + 0x169], ax
movzx eax, byte [esi + 0x25]
mov byte [ebx + 0x16b], al
movdqu xmm0, xmmword [esi + 0x26]
movdqu xmmword [ebx + 0x16c], xmm0
movzx eax, word [esi + 0x36]
mov word [ebx + 0x17c], ax
movq xmm0, qword [esi + 0x38]
movq qword [ebp - 0x20c], xmm0
mov eax, dword [esi + 0x40]
mov dword [ebp - 0x204], eax
lea eax, [ebp - 0x20c]
push eax
mov byte [ebp - 0x200], 0
call fcn.00593e1b
mov dword [ebx + 0x180], eax
mov eax, dword [esi + 0x44]
mov dword [ebp - 0x20c], eax
movzx eax, word [esi + 0x48]
mov word [ebp - 0x208], ax
lea eax, [ebp - 0x20c]
push eax
mov byte [ebp - 0x206], 0
call fcn.00593e1b
mov dword [ebx + 0x184], eax
movzx eax, word [esi + 0x4a]
mov word [ebp - 0x20c], ax
movzx eax, byte [esi + 0x4c]
add esi, 0x4d
mov byte [ebp - 0x20a], al
lea eax, [ebp - 0x20c]
push eax
mov byte [ebp - 0x209], 0
call fcn.00593e1b
mov edi, eax
push 0x244
push edi
mov dword [ebx + 0x188], edi
call fcn.00592c0b
add esp, 0x1c
mov dword [ebx + 0x18c], eax
mov dword [ebp - 0x210], 0
test edi, edi
jle 0x49769c
xor edi, edi
lea ecx, [ecx]
mov eax, dword [esi]
mov dword [ebp - 0x20c], eax
movzx eax, word [esi + 4]
mov word [ebp - 0x208], ax
lea eax, [ebp - 0x20c]
push eax
mov byte [ebp - 0x206], 0
call fcn.00593e1b
mov ecx, dword [ebx + 0x18c]
mov dword [edi + ecx], eax
movq xmm0, qword [esi + 6]
movq qword [ebp - 0x20c], xmm0
movzx eax, word [esi + 0xe]
add esi, 0x10
mov word [ebp - 0x204], ax
lea eax, [ebp - 0x20c]
push eax
mov byte [ebp - 0x202], 0
call fcn.00593e1b
mov ecx, dword [ebx + 0x18c]
lea edi, [edi + 0x244]
add esp, 8
mov dword [ecx + edi - 0x240], eax
mov eax, dword [ebp - 0x210]
inc eax
mov dword [ebp - 0x210], eax
cmp eax, dword [ebx + 0x188]
jl 0x497610
mov ax, word [esi]
mov word [ebp - 0x20c], ax
mov al, byte [esi + 2]
add esi, 3
mov byte [ebp - 0x20a], al
lea eax, [ebp - 0x20c]
push eax
mov byte [ebp - 0x209], 0
call fcn.00593e1b
mov edi, eax
add esp, 4
mov dword [ebx + 0x190], edi
test edi, edi
je 0x497786
mov ecx, edi
shl ecx, 4
push ecx
call fcn.00593e38
add esp, 4
mov dword [ebx + 0x194], eax
mov dword [ebp - 0x210], 0
test edi, edi
jle 0x497786
xor edi, edi
mov eax, dword [esi]
mov dword [ebp - 0x20c], eax
movzx eax, word [esi + 4]
mov word [ebp - 0x208], ax
lea eax, [ebp - 0x20c]
push eax
mov byte [ebp - 0x206], 0
call fcn.00593e1b
mov ecx, dword [ebx + 0x194]
mov dword [edi + ecx], eax
movq xmm0, qword [esi + 6]
movq qword [ebp - 0x20c], xmm0
movzx eax, word [esi + 0xe]
add esi, 0x10
mov word [ebp - 0x204], ax
lea eax, [ebp - 0x20c]
push eax
mov byte [ebp - 0x202], 0
call fcn.00593e1b
mov ecx, dword [ebx + 0x194]
lea edi, [edi + 0x10]
add esp, 8
mov dword [edi + ecx - 0xc], eax
mov eax, dword [ebp - 0x210]
inc eax
mov dword [ebp - 0x210], eax
cmp eax, dword [ebx + 0x190]
jl 0x497700
mov ax, word [esi]
mov word [ebp - 0x20c], ax
mov al, byte [esi + 2]
add esi, 3
mov byte [ebp - 0x20a], al
lea eax, [ebp - 0x20c]
push eax
mov byte [ebp - 0x209], 0
call fcn.00593e1b
mov edi, eax
add esp, 4
mov dword [ebx + 0x198], edi
test edi, edi
je 0x497876
mov ecx, edi
shl ecx, 4
push ecx
call fcn.00593e38
add esp, 4
mov dword [ebx + 0x19c], eax
mov dword [ebp - 0x210], 0
test edi, edi
jle 0x497876
xor edi, edi
lea ebx, [ebx]
mov eax, dword [esi]
mov dword [ebp - 0x20c], eax
movzx eax, word [esi + 4]
mov word [ebp - 0x208], ax
lea eax, [ebp - 0x20c]
push eax
mov byte [ebp - 0x206], 0
call fcn.00593e1b
mov ecx, dword [ebx + 0x19c]
mov dword [edi + ecx], eax
movq xmm0, qword [esi + 6]
movq qword [ebp - 0x20c], xmm0
movzx eax, word [esi + 0xe]
add esi, 0x10
mov word [ebp - 0x204], ax
lea eax, [ebp - 0x20c]
push eax
mov byte [ebp - 0x202], 0
call fcn.00593e1b
mov ecx, dword [ebx + 0x19c]
lea edi, [edi + 0x10]
add esp, 8
mov dword [ecx + edi - 0xc], eax
mov eax, dword [ebp - 0x210]
inc eax
mov dword [ebp - 0x210], eax
cmp eax, dword [ebx + 0x198]
jl 0x4977f0
mov ax, word [esi]
mov word [ebp - 0x20c], ax
mov al, byte [esi + 2]
add esi, 3
mov byte [ebp - 0x20a], al
lea eax, [ebp - 0x20c]
push eax
mov byte [ebp - 0x209], 0
call fcn.00593e1b
mov edi, eax
add esp, 4
mov dword [ebx + 0x1a0], edi
test edi, edi
je 0x497966
mov ecx, edi
shl ecx, 4
push ecx
call fcn.00593e38
add esp, 4
mov dword [ebx + 0x1a4], eax
mov dword [ebp - 0x210], 0
test edi, edi
jle 0x497966
xor edi, edi
lea ebx, [ebx]
mov eax, dword [esi]
mov dword [ebp - 0x20c], eax
movzx eax, word [esi + 4]
mov word [ebp - 0x208], ax
lea eax, [ebp - 0x20c]
push eax
mov byte [ebp - 0x206], 0
call fcn.00593e1b
mov ecx, dword [ebx + 0x1a4]
mov dword [edi + ecx], eax
movq xmm0, qword [esi + 6]
movq qword [ebp - 0x20c], xmm0
movzx eax, word [esi + 0xe]
add esi, 0x10
mov word [ebp - 0x204], ax
lea eax, [ebp - 0x20c]
push eax
mov byte [ebp - 0x202], 0
call fcn.00593e1b
mov ecx, dword [ebx + 0x1a4]
lea edi, [edi + 0x10]
add esp, 8
mov dword [edi + ecx - 0xc], eax
mov eax, dword [ebp - 0x210]
inc eax
mov dword [ebp - 0x210], eax
cmp eax, dword [ebx + 0x1a0]
jl 0x4978e0
mov ax, word [esi]
mov word [ebp - 0x20c], ax
mov al, byte [esi + 2]
add esi, 3
mov byte [ebp - 0x20a], al
lea eax, [ebp - 0x20c]
push eax
mov byte [ebp - 0x209], 0
call fcn.00593e1b
mov edi, eax
add esp, 4
mov dword [ebx + 0x1a8], edi
test edi, edi
je 0x497a56
mov ecx, edi
shl ecx, 4
push ecx
call fcn.00593e38
add esp, 4
mov dword [ebx + 0x1ac], eax
mov dword [ebp - 0x210], 0
test edi, edi
jle 0x497a56
xor edi, edi
lea ebx, [ebx]
mov eax, dword [esi]
mov dword [ebp - 0x20c], eax
movzx eax, word [esi + 4]
mov word [ebp - 0x208], ax
lea eax, [ebp - 0x20c]
push eax
mov byte [ebp - 0x206], 0
call fcn.00593e1b
mov ecx, dword [ebx + 0x1ac]
mov dword [edi + ecx], eax
movq xmm0, qword [esi + 6]
movq qword [ebp - 0x20c], xmm0
movzx eax, word [esi + 0xe]
add esi, 0x10
mov word [ebp - 0x204], ax
lea eax, [ebp - 0x20c]
push eax
mov byte [ebp - 0x202], 0
call fcn.00593e1b
mov ecx, dword [ebx + 0x1ac]
lea edi, [edi + 0x10]
add esp, 8
mov dword [edi + ecx - 0xc], eax
mov eax, dword [ebp - 0x210]
inc eax
mov dword [ebp - 0x210], eax
cmp eax, dword [ebx + 0x1a8]
jl 0x4979d0
mov ax, word [esi]
mov word [ebp - 0x20c], ax
mov al, byte [esi + 2]
add esi, 3
mov byte [ebp - 0x20a], al
lea eax, [ebp - 0x20c]
push eax
mov byte [ebp - 0x209], 0
call fcn.00593e1b
mov edi, eax
add esp, 4
mov dword [ebx + 0x1b0], edi
test edi, edi
je 0x497b46
mov ecx, edi
shl ecx, 4
push ecx
call fcn.00593e38
add esp, 4
mov dword [ebx + 0x1b4], eax
mov dword [ebp - 0x210], 0
test edi, edi
jle 0x497b46
xor edi, edi
lea ebx, [ebx]
mov eax, dword [esi]
mov dword [ebp - 0x20c], eax
movzx eax, word [esi + 4]
mov word [ebp - 0x208], ax
lea eax, [ebp - 0x20c]
push eax
mov byte [ebp - 0x206], 0
call fcn.00593e1b
mov ecx, dword [ebx + 0x1b4]
mov dword [edi + ecx], eax
movq xmm0, qword [esi + 6]
movq qword [ebp - 0x20c], xmm0
movzx eax, word [esi + 0xe]
add esi, 0x10
mov word [ebp - 0x204], ax
lea eax, [ebp - 0x20c]
push eax
mov byte [ebp - 0x202], 0
call fcn.00593e1b
mov ecx, dword [ebx + 0x1b4]
lea edi, [edi + 0x10]
add esp, 8
mov dword [ecx + edi - 0xc], eax
mov eax, dword [ebp - 0x210]
inc eax
mov dword [ebp - 0x210], eax
cmp eax, dword [ebx + 0x1b0]
jl 0x497ac0
mov eax, dword [esi]
mov dword [ebp - 0x20c], eax
mov al, byte [esi + 4]
add esi, 5
mov byte [ebp - 0x208], al
lea eax, [ebp - 0x20c]
push eax
mov byte [ebp - 0x207], 0
call fcn.00593e1b
add esp, 4
mov dword [ebx + 0x1b8], eax
test eax, eax
je 0x497bac
mov ax, word [esi]
mov word [ebp - 0x20c], ax
mov al, byte [esi + 2]
add esi, 3
mov byte [ebp - 0x20a], al
lea eax, [ebp - 0x20c]
push eax
mov byte [ebp - 0x209], 0
call fcn.00593e1b
add esp, 4
mov dword [ebx + 0x1bc], eax
mov eax, dword [esi]
mov dword [ebp - 0x20c], eax
mov al, byte [esi + 4]
mov byte [ebp - 0x208], al
lea eax, [ebp - 0x20c]
push eax
mov byte [ebp - 0x207], 0
call fcn.00593e1b
push dword [ebp - 0x220]
mov dword [ebx + 0x1c4], eax
call fcn.00592c4b
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005920c1
mov esp, ebp
pop ebp
ret
push edi
call fcn.00592c4b
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
mov eax, 2
pop edi
pop esi
pop ebx
call fcn.005920c1
mov esp, ebp
pop ebp
ret