Function at 0x4399f0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x4ff004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, edx
mov dword [ebp - 0x22c], ecx
push edi
mov edi, dword [0x500ba4]
mov ecx, esi
mov dword [ebp - 0x228], esi
mov dword [ebp - 0x218], edi
mov dword [ebp - 0x21c], 0x500ba4
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x224], 0
call fcn.00429b60
mov byte [ebp - 0x209], al
cmp al, 0xff
je 0x439b18
mov cl, al
call fcn.0042a0f0
mov dword [ebp - 0x214], eax
add eax, 0x1ff
and eax, 0xfffffe00
push eax
push 1
mov dword [ebp - 0x220], eax
call fcn.0044d780
mov dword [ebp - 0x224], eax
add esp, 8
mov eax, dword [ebp - 0x214]
xor ebx, ebx
test eax, eax
je 0x439b0d
mov edi, dword [ebp - 0x224]
mov ecx, 0x4000
mov esi, eax
sub esi, ebx
cmp esi, 0x4000
cmovg esi, ecx
mov cl, byte [ebp - 0x209]
cmp cl, 0x14
jbe 0x439abe
xor eax, eax
jmp 0x439ad2
lea eax, [esi + 1]
sar eax, 1
lea edx, [ebx + edi]
push eax
call fcn.00429eb0
add esp, 4
movzx eax, ax
movzx eax, ax
cmp eax, esi
je 0x439af0
push 0x2f4
push str.....oslibhttposstub.c
push str.ASSERT_FAILED:_s:_d_n
call fcn.0041cc00
add esp, 0xc
mov eax, dword [ebp - 0x214]
add ebx, esi
mov ecx, 0x4000
cmp ebx, eax
jb 0x439aa2
mov edi, dword [ebp - 0x218]
mov esi, dword [ebp - 0x228]
mov cl, byte [ebp - 0x209]
call fcn.00429de0
xor ebx, ebx
mov dword [ebp - 0x218], ebx
test edi, edi
je 0x439b7c
mov ebx, dword [edi]
lea eax, [edi + 0x10]
mov dword [ebp - 0x218], ebx
mov ecx, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x439b51
test dl, dl
je 0x439b4d
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x439b51
add eax, 2
add ecx, 2
test dl, dl
jne 0x439b31
xor eax, eax
jmp 0x439b56
sbb eax, eax
or eax, 1
test eax, eax
je 0x439b7c
mov eax, dword [edi + 4]
add eax, 0x200
add ebx, eax
lea eax, [edi + 0x214]
mov edi, dword [eax]
mov dword [ebp - 0x218], ebx
mov dword [ebp - 0x21c], eax
test edi, edi
jne 0x439b24
cmp dword [ebp - 0x224], 0
jne 0x439bc4
test edi, edi
je 0x43a05a
push esi
push str.__Deleted_user_file:__s_n
call fcn.004362a0
mov esi, dword [ebp - 0x21c]
mov eax, dword [edi + 0x214]
mov dword [esi], eax
push dword [edi + 0x210]
call fcn.004460f9
add esp, 0xc
push edi
call fcn.004460f9
mov edi, dword [esi]
add esp, 4
jmp 0x439d9d
push dword [ebp - 0x220]
push dword [ebp - 0x214]
push esi
test edi, edi
jne 0x439ccf
push str.__Add_user_file:__s__size_d_allocated_d__n
call fcn.004362a0
push 0x218
push 1
call fcn.0044d780
mov edi, eax
add esp, 0x18
test edi, edi
je 0x43a05a
mov eax, dword [ebp - 0x220]
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x214]
push 0
mov dword [edi], 1
mov dword [edi + 8], eax
call fcn.0044609b
mov dword [edi + 0xc], eax
add esp, 4
mov eax, dword [ebp - 0x224]
mov dword [edi + 0x210], eax
lea eax, [edi + 0x10]
mov cl, byte [esi]
test cl, cl
je 0x439c42
sub esi, eax
mov byte [eax], cl
inc eax
mov cl, byte [esi + eax]
test cl, cl
jne 0x439c38
mov byte [eax], 0
mov edx, str.0100777
lea eax, [edi + 0x74]
mov cl, 0x30
sub edx, eax
mov byte [eax], cl
lea eax, [eax + 1]
mov cl, byte [edx + eax]
test cl, cl
jne 0x439c51
mov byte [eax], cl
mov edx, str.0000000
lea eax, [edi + 0x7c]
mov cl, 0x30
sub edx, eax
nop dword [eax + eax]
mov byte [eax], cl
lea eax, [eax + 1]
mov cl, byte [edx + eax]
test cl, cl
jne 0x439c70
mov byte [eax], cl
mov edx, str.0000000
lea eax, [edi + 0x84]
mov cl, 0x30
sub edx, eax
nop dword [eax]
mov byte [eax], cl
lea eax, [eax + 1]
mov cl, byte [edx + eax]
test cl, cl
jne 0x439c90
mov byte [eax], cl
mov ecx, edi
mov byte [edi + 0xac], 0x30
mov eax, dword [str.ustar]
mov dword [edi + 0x111], eax
mov eax, dword [0x4fb03c]
mov dword [edi + 0x115], eax
call fcn.00439430
mov esi, dword [ebp - 0x21c]
mov dword [esi], edi
jmp 0x439d9d
push str.__Updated_user_file:__s__new_size_d__d__n
call fcn.004362a0
push dword [edi + 0x210]
call fcn.004460f9
mov eax, dword [edi + 4]
add esp, 0x14
mov ecx, dword [ebp - 0x220]
cmp eax, ecx
je 0x439d70
cmp dword [edi + 0x214], 0
je 0x439d70
push eax
push str.___previously_allocated_to__d__n
call fcn.004362a0
mov ecx, dword [edi + 0x214]
add esp, 8
mov esi, dword [ebp - 0x21c]
mov dword [esi], ecx
mov eax, dword [ecx + 0x214]
test eax, eax
je 0x439d2f
mov ecx, eax
mov eax, dword [ecx + 0x214]
test eax, eax
jne 0x439d23
mov eax, dword [ebp - 0x220]
mov dword [ecx + 0x214], edi
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x214]
mov dword [edi + 0x214], 0
mov dword [edi + 8], eax
call fcn.00408c40
mov dword [edi + 0xc], eax
mov ecx, edi
mov eax, dword [ebp - 0x224]
mov dword [edi + 0x210], eax
call fcn.00439430
mov edi, dword [esi]
jmp 0x439d9d
mov eax, dword [ebp - 0x214]
mov dword [edi], 1
mov dword [edi + 4], ecx
mov dword [edi + 8], eax
call fcn.00408c40
mov dword [edi + 0xc], eax
mov ecx, edi
mov eax, dword [ebp - 0x224]
mov dword [edi + 0x210], eax
call fcn.00439430
mov esi, dword [ebp - 0x22c]
lea eax, [ebp - 0x210]
push 0x4fb0ac
push esi
push eax
call fcn.0044bf78
add esp, 0xc
test eax, eax
je 0x439ddb
push esi
push str.Fail_to_open_User_container_file_for_writing___s__n
call fcn.004362a0
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004423fe
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x439f7d
mov eax, dword [ebp - 0x218]
xor esi, esi
mov ebx, dword [0x500ba4]
mov dword [ebp - 0x21c], esi
test eax, eax
je 0x439f41
nop
cmp ebx, edi
jne 0x439e1b
push 0x359
push str.....oslibhttposstub.c
push str.ASSERT_FAILED:_s:_d_n
call fcn.0041cc00
add esp, 0xc
push dword [ebp - 0x210]
lea eax, [ebp - 0x208]
push 1
push 0x200
push eax
call fcn.0044dc9c
add esp, 0x10
cmp eax, 1
je 0x439e53
push 0x35a
push str.....oslibhttposstub.c
push str.ASSERT_FAILED:_s:_d_n
call fcn.0041cc00
add esp, 0xc
push dword [ebx]
lea esi, [ebx + 0x10]
push dword [ebp - 0x21c]
lea eax, [ebp - 0x208]
push esi
push eax
push str._check:_s_vs__s___d_vs__d__n
call fcn.004362a0
mov edx, esi
add esp, 0x14
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x439e78
sub edx, ecx
lea ecx, [ebp - 0x208]
inc edx
sub edx, 4
jb 0x439ea1
nop dword [eax]
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x439ea6
add ecx, 4
add esi, 4
sub edx, 4
jae 0x439e90
cmp edx, 0xfffffffc
je 0x439eea
mov al, byte [ecx]
cmp al, byte [esi]
jne 0x439ed3
cmp edx, 0xfffffffd
je 0x439eea
mov al, byte [ecx + 1]
cmp al, byte [esi + 1]
jne 0x439ed3
cmp edx, 0xfffffffe
je 0x439eea
mov al, byte [ecx + 2]
cmp al, byte [esi + 2]
jne 0x439ed3
cmp edx, 0xffffffff
je 0x439eea
mov al, byte [ecx + 3]
cmp al, byte [esi + 3]
je 0x439eea
push 0x35c
push str.....oslibhttposstub.c
push str.ASSERT_FAILED:_s:_d_n
call fcn.0041cc00
add esp, 0xc
mov esi, dword [ebp - 0x21c]
cmp dword [ebx], esi
je 0x439f0b
push 0x35d
push str.....oslibhttposstub.c
push str.ASSERT_FAILED:_s:_d_n
call fcn.0041cc00
add esp, 0xc
push 1
push dword [ebx + 4]
push dword [ebp - 0x210]
call fcn.0044da47
mov eax, dword [ebp - 0x218]
add esi, 0x200
add esi, dword [ebx + 4]
add esp, 0xc
mov ebx, dword [ebx + 0x214]
mov dword [ebp - 0x21c], esi
cmp esi, eax
jb 0x439e00
cmp esi, eax
je 0x439f5c
push 0x362
push str.....oslibhttposstub.c
push str.ASSERT_FAILED:_s:_d_n
call fcn.0041cc00
add esp, 0xc
cmp ebx, edi
je 0x439f77
push 0x363
push str.....oslibhttposstub.c
push str.ASSERT_FAILED:_s:_d_n
call fcn.0041cc00
add esp, 0xc
mov ebx, dword [ebp - 0x218]
push 0
push ebx
push dword [ebp - 0x210]
call fcn.0044da47
add esp, 0xc
test edi, edi
je 0x43a004
cmp dword [edi], ebx
je 0x439fd8
push dword [edi + 4]
lea esi, [edi + 0x10]
push ebx
push esi
push str.Update_content_of_.tar_file_for__s_at__d__write_512_d_bytes__n
call fcn.004362a0
mov dword [edi], ebx
push dword [ebp - 0x210]
push 1
push 0x200
push esi
call fcn.0044be5e
push dword [ebp - 0x210]
push 1
push dword [edi + 4]
push dword [edi + 0x210]
call fcn.0044be5e
add esp, 0x30
jmp 0x439ff1
mov eax, dword [edi + 4]
push 1
add eax, 0x200
push eax
push dword [ebp - 0x210]
call fcn.0044da47
add esp, 0xc
add ebx, 0x200
add ebx, dword [edi + 4]
mov edi, dword [edi + 0x214]
test edi, edi
jne 0x439f92
push 0x200
lea eax, [ebp - 0x208]
push 0
push eax
call fcn.00443620
add esp, 0xc
lea eax, [ebp - 0x208]
push dword [ebp - 0x210]
push 1
push 0x200
push eax
call fcn.0044be5e
push dword [ebp - 0x210]
lea eax, [ebp - 0x208]
push 1
push 0x200
push eax
call fcn.0044be5e
push dword [ebp - 0x210]
call fcn.00449c65
add esp, 0x24
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004423fe
mov esp, ebp
pop ebp
ret