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

Disassembly:
push ebp
lea ebp, [esp - 0x8014]
mov eax, 0x8014
call fcn.0049f030
push 0xffffffffffffffff
push 0x4aee18
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x4c0390]
xor eax, ebp
mov dword [ebp + 0x8010], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x801c]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp + 0x8020]
mov dword [ebp - 0x34], ecx
mov esi, dword [ebp + 0x8024]
xor edi, edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 4], edi
mov byte [ebp - 4], 1
push 0x40000
lea ecx, [ebp - 0x28]
call fcn.00402a30
mov dword [ebp - 4], edi
mov ebx, dword [ebp - 0x28]
push 0x4b1948
push esi
call fcn.004a0348
add esp, 8
mov esi, eax
cmp esi, edi
jne 0x462d16
mov dword [ebp - 4], 0xffffffff
cmp ebx, edi
je 0x46327d
push ebx
jmp 0x463275
push esi
push 0x40000
push 1
push ebx
call fcn.004a05f9
mov edi, eax
mov dword [ebp - 0x18], edi
push esi
call fcn.004a0026
add esp, 0x14
cmp edi, 0x16
jb 0x46317c
cmp word [ebx], 0
jne 0x46317c
cmp word [ebx + 2], 1
jne 0x46317c
push 0x8010
push 0
lea edx, [ebp]
push edx
call fcn.0049f060
add esp, 0xc
mov esi, 6
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x14], 0
xor eax, eax
cmp ax, word [ebx + 4]
jae 0x462e40
jmp 0x462d83
mov edi, dword [ebp - 0x18]
lea ecx, [edi - 0x10]
cmp esi, ecx
jae 0x462e40
mov eax, dword [esi + ebx + 0xc]
mov ecx, dword [esi + ebx + 8]
add ecx, eax
cmp ecx, edi
ja 0x462e40
add eax, ebx
mov edi, 4
mov edx, edi
mov ecx, dword [eax + 4]
cmp ecx, 0x10
jne 0x462dc8
cmp word [eax + 0xe], di
jne 0x462db9
xor edx, edx
cmp ecx, 0x10
jne 0x462dc8
cmp word [eax + 0xe], 8
jne 0x462dc8
lea edx, [ecx - 0xf]
cmp ecx, 0x20
jne 0x462de7
cmp word [eax + 0xe], di
jne 0x462dd6
lea edx, [ecx - 0x1e]
cmp ecx, 0x20
jne 0x462de7
cmp word [eax + 0xe], 8
jne 0x462de7
lea edx, [ecx - 0x1d]
jmp 0x462deb
cmp edx, edi
je 0x462e27
mov esi, dword [eax + 0x20]
mov edi, 1
mov cl, byte [eax + 0xe]
shl edi, cl
cmp edi, esi
je 0x462e00
test esi, esi
jne 0x462e24
imul edx, edx, 0x2004
lea ecx, [ebp + edx]
mov esi, dword [ebp - 0x1c]
mov edx, dword [esi + ebx + 8]
mov dword [ecx + 0x2000], edx
push edx
push eax
push ecx
call fcn.0049f0e0
add esp, 0xc
jmp 0x462e27
mov esi, dword [ebp - 0x1c]
add esi, 0x10
mov dword [ebp - 0x1c], esi
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
movzx edx, word [ebx + 4]
cmp eax, edx
jb 0x462d80
cmp dword [ebp + 0x4004], 0
jne 0x462ee5
cmp dword [ebp + 0x2000], 0
je 0x462ee5
push 0x2004
lea eax, [ebp]
push eax
lea ecx, [ebp + 0x2004]
push ecx
call fcn.0049f0e0
mov edx, 8
mov word [ebp + 0x2012], dx
xor eax, eax
mov dword [ebp + 0x2018], eax
mov dword [ebp + 0x2024], eax
lea esi, [ebp + 0x68]
lea edi, [ebp + 0x242c]
push 0x3c0
push eax
lea eax, [ebp + 0x206c]
push eax
call fcn.0049f060
add esp, 0x18
xor eax, eax
lea esp, [esp]
mov cl, byte [eax + esi]
sar cl, 4
mov byte [edi + eax*2], cl
mov dl, byte [eax + esi]
and dl, 0xf
mov byte [edi + eax*2 + 1], dl
inc eax
cmp eax, 0x80
jl 0x462eb0
sub esi, 0xffffff80
add edi, 0x100
mov ecx, 0x10
rep movsd dword es:[edi], dword [esi]
mov dword [ebp + 0x4004], 0x568
mov eax, dword [ebp + 0x800c]
test eax, eax
jne 0x462f8d
cmp dword [ebp + 0x6008], eax
je 0x462f8d
push 0x2004
lea eax, [ebp + 0x4008]
push eax
lea ecx, [ebp + 0x600c]
push ecx
call fcn.0049f0e0
mov edx, 8
mov word [ebp + 0x601a], dx
xor eax, eax
mov dword [ebp + 0x6020], eax
mov dword [ebp + 0x602c], eax
lea esi, [ebp + 0x4070]
lea edi, [ebp + 0x6434]
push 0x3c0
push eax
lea eax, [ebp + 0x6074]
push eax
call fcn.0049f060
add esp, 0x18
xor eax, eax
mov cl, byte [eax + esi]
sar cl, 4
mov byte [edi + eax*2], cl
mov dl, byte [eax + esi]
and dl, 0xf
mov byte [edi + eax*2 + 1], dl
inc eax
cmp eax, 0x200
jl 0x462f54
add esi, 0x200
add edi, 0x400
mov ecx, 0x20
rep movsd dword es:[edi], dword [esi]
mov eax, 0x8a8
mov dword [ebp + 0x800c], eax
cmp dword [ebp + 0x4004], 0
jne 0x463165
test eax, eax
je 0x463165
push 0x2004
lea eax, [ebp + 0x600c]
push eax
lea ecx, [ebp + 0x2004]
push ecx
call fcn.0049f0e0
add esp, 0xc
mov dword [ebp + 0x2008], 0x10
mov dword [ebp + 0x200c], 0x20
xor eax, eax
mov dword [ebp + 0x2018], eax
mov dword [ebp + 0x2024], eax
lea edi, [ebp + 0x6434]
lea esi, [ebp + 0x242c]
xor ecx, ecx
lea ecx, [ecx]
xor eax, eax
mov edx, ecx
shl edx, 5
add edx, eax
mov dl, byte [edx + edi]
mov byte [esi], dl
inc esi
add eax, 2
cmp eax, 0x20
jl 0x462ff2
add ecx, 2
cmp ecx, 0x20
jl 0x462ff0
add edi, 0x400
mov dword [ebp - 0x2c], edi
push 0x40
push 0
push esi
call fcn.0049f060
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x18], eax
jmp 0x463033
mov edi, dword [ebp - 0x2c]
add edi, eax
mov dword [ebp - 0x1c], edi
xor eax, eax
lea ebx, [ebx]
mov ebx, eax
and ebx, 3
lea ecx, [ebx + ebx]
mov edx, 0x80
sar edx, cl
mov ecx, eax
shr ecx, 2
movsx ecx, byte [ecx + edi]
and edx, ecx
test al, 4
je 0x463069
mov ecx, 4
sub ecx, ebx
sar edx, cl
jmp 0x46306d
mov ecx, ebx
shl edx, cl
mov ecx, eax
shr ecx, 3
add ecx, esi
or byte [ecx], dl
lea edx, [eax + 1]
mov ecx, edx
and ecx, 3
mov dword [ebp - 0x14], ecx
add ecx, ecx
mov ebx, 0x80
sar ebx, cl
mov ecx, edx
shr ecx, 2
movsx ecx, byte [ecx + edi]
and ebx, ecx
test dl, 4
je 0x4630a9
mov ecx, 4
sub ecx, dword [ebp - 0x14]
sar ebx, cl
mov edi, dword [ebp - 0x1c]
jmp 0x4630ae
mov ecx, dword [ebp - 0x14]
shl ebx, cl
shr edx, 3
add edx, esi
or byte [edx], bl
lea ecx, [eax - 2]
and ecx, 3
mov dword [ebp - 0x14], ecx
lea edx, [eax + 2]
add ecx, ecx
mov ebx, 0x80
sar ebx, cl
mov ecx, edx
shr ecx, 2
movsx ecx, byte [ecx + edi]
and ebx, ecx
test dl, 4
je 0x4630e9
mov ecx, 4
sub ecx, dword [ebp - 0x14]
sar ebx, cl
mov edi, dword [ebp - 0x1c]
jmp 0x4630ee
mov ecx, dword [ebp - 0x14]
shl ebx, cl
shr edx, 3
add edx, esi
or byte [edx], bl
lea ecx, [eax - 1]
and ecx, 3
mov dword [ebp - 0x14], ecx
lea ebx, [eax + 3]
add ecx, ecx
mov edx, 0x80
sar edx, cl
mov ecx, ebx
shr ecx, 2
movsx ecx, byte [ecx + edi]
and edx, ecx
test bl, 4
je 0x463129
mov ecx, 4
sub ecx, dword [ebp - 0x14]
sar edx, cl
mov edi, dword [ebp - 0x1c]
jmp 0x46312e
mov ecx, dword [ebp - 0x14]
shl edx, cl
shr ebx, 3
add ebx, esi
or byte [ebx], dl
add eax, 4
cmp eax, 0x10
jl 0x463040
add esi, 4
mov eax, dword [ebp - 0x18]
add eax, 8
mov dword [ebp - 0x18], eax
cmp eax, 0x80
jl 0x463030
mov dword [ebp + 0x4004], 0x568
mov ebx, dword [ebp - 0x28]
push 0x4b1948
mov edx, dword [ebp - 0x30]
push edx
call fcn.004a0348
add esp, 8
mov esi, eax
test esi, esi
jne 0x463191
mov dword [ebp - 4], 0xffffffff
test ebx, ebx
je 0x46327d
push ebx
jmp 0x463275
push esi
push 0x40000
push 1
push ebx
call fcn.004a05f9
mov edi, eax
mov dword [ebp - 0x18], edi
push esi
call fcn.004a0026
add esp, 0x14
xor esi, esi
lea eax, [edi - 0x28]
test eax, eax
jbe 0x463231
xor edi, edi
jmp 0x4631c0
mov edx, edi
imul edx, edx, 0x2004
cmp dword [ebp + edx + 0x2000], 0
je 0x46321d
mov eax, 0x14
lea ecx, [esi + ebx]
lea edx, [ebp + edx]
mov edi, edi
mov ebx, dword [edx]
cmp ebx, dword [ecx]
jne 0x46321a
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x4631e0
mov eax, edi
imul eax, eax, 0x2004
mov ecx, dword [ebp + eax + 0x2000]
push ecx
lea edx, [ebp + eax]
push edx
mov ebx, dword [ebp - 0x28]
lea eax, [esi + ebx]
push eax
call fcn.0049f0e0
add esp, 0xc
jmp 0x46321d
mov ebx, dword [ebp - 0x28]
inc edi
cmp edi, 4
jb 0x4631c0
inc esi
mov ecx, dword [ebp - 0x18]
add ecx, 0xffffffd8
cmp esi, ecx
jb 0x4631b6
mov edi, dword [ebp - 0x18]
mov edx, dword [ebp - 0x34]
push edx
push edi
push 1
push ebx
call fcn.004a0202
add esp, 0x10
mov dword [ebp - 4], 0xffffffff
test ebx, ebx
je 0x463255
push ebx
call fcn.0049e7fd
add esp, 4
mov al, 1
jmp 0x46327f
call fcn.0049e7fd
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x8010]
xor ecx, ebp
call fcn.0049eaa6
add ebp, 0x8014
mov esp, ebp
pop ebp
ret 0xc