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

Disassembly:
push ebp
lea ebp, [esp - 0x58]
sub esp, 0x8c
mov eax, dword [ebp + 0x7c]
and dword [ebp + 0x68], 0xfffffff0
shr eax, 0x1e
and eax, 1
push ebx
mov dword [ebp - 0x24], eax
movsx eax, word [ebp + 0x7c]
push esi
xor esi, esi
cmp ax, si
push edi
mov dword [ebp + 0x7c], eax
mov dword [ebp + 0x1c], eax
jge 0x449ed5
neg eax
mov dword [ebp + 0x1c], eax
mov eax, dword [ebp + 0x68]
mov ecx, dword [ebp + 0x64]
lea eax, [eax + eax*2]
shl eax, 1
cdq
lea edi, [ecx + 0x100480]
lea ebx, [edi + 0xffc00]
mov dword [ebp + 0x50], eax
mov eax, dword [ebp + 0x6c]
or eax, dword [ebp + 0x70]
mov word [ecx + 0x100000], si
mov dword [ebp + 0x38], edi
mov dword [ebp + 0x4c], esi
mov dword [ebp + 0x3c], ebx
mov dword [ebx + 0x40], esi
mov dword [ebx + 0x44], esi
mov dword [ebx], esi
mov dword [ebx + 4], esi
mov dword [ebp + 0x54], edx
je 0x449f42
mov eax, dword [ecx]
mov dword [ebp + 0x2c], eax
mov eax, dword [ecx + 4]
mov dword [ebp + 0x30], eax
mov eax, dword [ebp + 0x68]
cdq
mov dword [ecx], esi
mov dword [ecx + 4], esi
mov ecx, eax
mov eax, dword [ebp + 0x2c]
sub eax, ecx
mov ecx, dword [ebp + 0x30]
sbb ecx, edx
add eax, dword [ebp + 0x6c]
adc ecx, dword [ebp + 0x70]
mov dword [ebp + 0x50], eax
mov dword [ebp + 0x54], ecx
push esi
push dword [ebp + 0x54]
push dword [ebp + 0x50]
push dword [ebp + 0x60]
call fcn.0043f9d0
add esp, 0x10
cmp eax, dword [ebp + 0x50]
jne 0x44a17f
cmp edx, dword [ebp + 0x54]
jne 0x44a17f
push esi
lea eax, [ebp + 0x4c]
push eax
push dword [ebp + 0x68]
push edi
push dword [ebp + 0x60]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp + 0x68]
cmp eax, dword [ebp + 0x4c]
jne 0x44a17f
push 8
push edi
push str.PRIVHEAD
call dword [sym.imp.SHLWAPI.dll_StrCmpNA]
test eax, eax
jne 0x44a17f
push 0x40
lea eax, [edi + 0x30]
push eax
push ebx
call fcn.00414409
mov eax, dword [ebp + 0x6c]
add esp, 0xc
or eax, dword [ebp + 0x70]
jne 0x449ff5
lea eax, [edi + 0x11b]
push 8
push eax
call fcn.00442528
mov dword [ebp + 0x74], eax
lea eax, [edi + 0x12b]
push 8
push eax
mov dword [ebp + 0x78], edx
call fcn.00442528
mov ecx, eax
mov eax, dword [ebp + 0x68]
add esp, 0x10
mov ebx, edx
cdq
push edx
add ecx, 1
push eax
adc ebx, esi
push ebx
push ecx
call fcn.004adbb0
mov ebx, dword [ebp + 0x3c]
mov dword [ebp + 0x6c], eax
mov dword [ebp + 0x70], edx
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
push dword [ebp + 0x70]
mov byte [ebp + 0x47], al
push dword [ebp + 0x6c]
push dword [ebp + 0x60]
call fcn.0043f9d0
add esp, 0x10
cmp eax, dword [ebp + 0x6c]
jne 0x44a17f
cmp edx, dword [ebp + 0x70]
jne 0x44a17f
push esi
lea eax, [ebp + 0x4c]
push eax
mov ebx, 0x2000
push ebx
push edi
push dword [ebp + 0x60]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp + 0x4c], ebx
jne 0x44a17f
xor eax, eax
cmp dword [edi], esi
mov dword [ebp + 8], esi
mov dword [ebp + 0x48], esi
mov ecx, edi
jne 0x44a05d
cmp eax, ebx
jge 0x44a05d
add ecx, dword [ebp + 0x68]
add eax, dword [ebp + 0x68]
cmp dword [ecx], esi
je 0x44a04f
mov eax, dword [ebp + 0x68]
cdq
add ecx, 0x2e
push 8
push ecx
mov dword [ebp], eax
mov dword [ebp + 4], edx
call fcn.00442528
pop ecx
pop ecx
push dword [ebp + 4]
sub eax, 1
push dword [ebp]
sbb edx, esi
push edx
push eax
call fcn.004adbb0
mov ebx, eax
add ebx, dword [ebp + 0x6c]
push esi
adc edx, dword [ebp + 0x70]
mov dword [ebp - 8], ebx
push edx
push ebx
push dword [ebp + 0x60]
mov dword [ebp - 4], edx
call fcn.0043f9d0
add esp, 0x10
cmp eax, ebx
jne 0x44a17f
cmp edx, dword [ebp - 4]
jne 0x44a17f
mov ebx, dword [ebp + 0x68]
push esi
lea eax, [ebp + 0x4c]
push eax
push ebx
push edi
push dword [ebp + 0x60]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp ebx, dword [ebp + 0x4c]
jne 0x44a17f
lea eax, [edi + 8]
push 4
push eax
call fcn.00442528
cmp eax, esi
pop ecx
pop ecx
mov dword [ebp + 0x40], eax
jle 0x44a17f
mov eax, 0xffc00
cdq
idiv dword [ebp + 0x40]
push 4
mov esi, eax
lea eax, [edi + 4]
push eax
call fcn.00442528
mov dword [ebp + 0x50], eax
mov dword [ebp + 0x54], edx
mov eax, esi
cdq
cmp dword [ebp + 0x54], edx
pop ecx
pop ecx
jl 0x44a11a
jg 0x44a114
cmp dword [ebp + 0x50], eax
jbe 0x44a11a
mov dword [ebp + 0x50], eax
mov dword [ebp + 0x54], edx
mov ebx, dword [ebp + 0x50]
imul ebx, dword [ebp + 0x40]
lea eax, [edi + 0xc]
push 4
push eax
mov dword [ebp - 0x20], ebx
call fcn.00442528
mov esi, eax
add esi, dword [ebp - 8]
lea eax, [edi + 0x85]
adc edx, dword [ebp - 4]
push 4
push eax
mov dword [ebp + 0x2c], esi
mov dword [ebp + 0x30], edx
call fcn.00442528
push 0
push dword [ebp + 0x30]
mov dword [ebp + 0x10], eax
push esi
push dword [ebp + 0x60]
call fcn.0043f9d0
add esp, 0x20
cmp eax, esi
jne 0x44a17f
cmp edx, dword [ebp + 0x30]
jne 0x44a17f
xor esi, esi
push esi
lea eax, [ebp + 0x4c]
push eax
push ebx
push edi
push dword [ebp + 0x60]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp ebx, dword [ebp + 0x4c]
je 0x44a187
or eax, 0xffffffff
jmp 0x44a6b3
cmp dword [ebp + 0x54], esi
mov dword [ebp + 0x28], esi
mov dword [ebp + 0x70], esi
mov dword [ebp + 0x68], esi
jl 0x44a274
jg 0x44a1a4
cmp dword [ebp + 0x50], esi
jbe 0x44a274
add edi, 0x13
mov al, byte [edi]
cmp al, 0x34
mov edx, dword [ebp + 0x64]
jne 0x44a204
movzx ebx, byte [edi + 5]
lea esi, [edi + 6]
push ebx
push esi
call fcn.00442528
mov dword [ebp - 0x10], eax
lea eax, [esi + ebx]
movsx esi, byte [ebp + 0x47]
pop ecx
pop ecx
movzx ecx, byte [eax]
lea ebx, [eax + ecx + 1]
movzx eax, byte [ebx]
inc ebx
cmp eax, esi
mov dword [ebp - 0xc], edx
mov dword [ebp + 0x24], eax
jl 0x44a256
push esi
push ebx
push dword [ebp + 0x3c]
call dword [sym.imp.SHLWAPI.dll_StrCmpNIA]
test eax, eax
jne 0x44a256
cmp esi, dword [ebp + 0x24]
je 0x44a1f8
cmp byte [esi + ebx], al
jne 0x44a256
mov eax, dword [ebp - 0x10]
cmp dword [ebp + 0x70], 0
mov dword [ebp + 0x28], eax
jmp 0x44a254
cmp al, 0x35
jne 0x44a256
movzx eax, byte [edi + 5]
lea ecx, [eax + edi + 6]
movzx eax, byte [ecx]
lea esi, [eax + 8]
mov word [edx + 0x100000], si
xor esi, esi
inc esi
cmp eax, esi
mov dword [ebp + 0x70], ecx
jl 0x44a239
movzx bx, byte [esi + ecx]
mov word [edx + esi*2 + 0x100000], bx
inc esi
cmp esi, eax
jle 0x44a227
push 0x10
lea eax, [edx + eax*2 + 0x100002]
push str.Volume
push eax
call fcn.00414409
add esp, 0xc
cmp dword [ebp + 0x28], 0
jne 0x44a274
inc dword [ebp + 0x68]
mov eax, dword [ebp + 0x68]
add edi, dword [ebp + 0x40]
cdq
cmp edx, dword [ebp + 0x54]
jl 0x44a1a7
jg 0x44a274
cmp eax, dword [ebp + 0x50]
jb 0x44a1a7
xor eax, eax
cmp dword [ebp + 0x28], eax
mov dword [ebp - 0x18], eax
mov byte [ebp + 0x73], al
je 0x44a6b3
cmp dword [ebp + 0x10], eax
mov dword [ebp + 0x3c], eax
jle 0x44a696
mov eax, dword [ebp + 0x38]
mov esi, dword [ebp + 0x64]
add eax, 0x19
mov dword [ebp + 0x34], eax
add esi, 0x36
mov eax, dword [ebp + 0x3c]
cdq
cmp edx, dword [ebp + 0x54]
jg 0x44a655
jl 0x44a2b8
cmp eax, dword [ebp + 0x50]
jae 0x44a655
mov eax, dword [ebp + 0x34]
cmp byte [eax - 6], 0x51
jne 0x44a640
inc dword [ebp + 8]
push 0x10
lea eax, [esi - 0x16]
push 0
push eax
call fcn.004adaa0
mov ebx, dword [ebp + 0x34]
movzx edi, byte [ebx - 1]
push edi
push ebx
call fcn.00442528
and dword [ebp + 0x64], 0
add edi, ebx
movzx ebx, byte [edi]
add esp, 0x14
inc edi
cmp ebx, 6
mov dword [ebp - 0x30], eax
jle 0x44a31c
push 6
push edi
push 0x4c92e0
call dword [sym.imp.SHLWAPI.dll_StrCmpNIA]
test eax, eax
jne 0x44a31c
lea eax, [ebx - 6]
push eax
lea eax, [edi + 6]
push eax
call fcn.00449e57
pop ecx
pop ecx
mov dword [ebp + 0x64], eax
add edi, ebx
movzx eax, byte [edi]
lea eax, [edi + eax + 1]
movzx ecx, byte [eax]
lea eax, [eax + ecx + 0x13]
mov dl, byte [eax]
mov cl, dl
and cl, 0x80
test dl, dl
mov dword [ebp + 0x24], eax
mov byte [ebp + 0x6b], cl
jns 0x44a343
mov word [esi - 0x16], 0x100
add eax, 3
movzx ecx, byte [eax]
lea edi, [eax + ecx + 0x11]
movzx ebx, byte [edi]
and dword [esi - 0x26], 0
and dword [esi - 0x22], 0
inc edi
push ebx
push edi
call fcn.00442528
pop ecx
pop ecx
push dword [ebp + 4]
push dword [ebp]
push edx
push eax
call fcn.004adbb0
mov dword [ebp - 0x10], eax
mov ax, word [ebp + 0x64]
mov word [esi - 0x14], ax
lea edi, [edi + ebx + 4]
movzx ax, byte [edi]
mov word [esi - 0x16], ax
mov eax, dword [ebp + 0x48]
inc edi
inc eax
push 4
push edi
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
mov dword [esi - 0x1e], eax
call fcn.00442528
lea ebx, [edi + 4]
push 2
push ebx
mov dword [esi - 6], eax
call fcn.00442528
inc ebx
inc ebx
push 2
push ebx
mov dword [esi - 2], eax
call fcn.00442528
push 8
mov dword [esi], eax
add ebx, 2
lea eax, [esi + 2]
push ebx
push eax
call fcn.00414409
and dword [esi + 0xa], 0
and dword [esi + 0xe], 0
add edi, 0x10
add esp, 0x24
cmp byte [edi], 0
jbe 0x44a3e6
movzx eax, byte [edi + 1]
cdq
mov dword [esi + 0xa], eax
mov dword [esi + 0xe], edx
xor eax, eax
cmp dword [ebp + 0x54], eax
mov dword [esi - 0x2e], eax
mov dword [esi - 0x2a], eax
mov dword [ebp + 0x14], eax
jl 0x44a640
jg 0x44a405
cmp dword [ebp + 0x50], eax
jbe 0x44a640
mov edi, dword [ebp + 0x38]
mov dword [ebp - 0x14], edi
cmp byte [edi + 0x13], 0x32
jne 0x44a53d
movzx ebx, byte [edi + 0x18]
movzx eax, byte [edi + ebx + 0x19]
add eax, edi
add eax, ebx
movzx ecx, byte [eax + 0x38]
push ecx
add eax, 0x39
push eax
call fcn.00442528
cmp dword [ebp - 0x30], eax
pop ecx
pop ecx
jne 0x44a53d
push ebx
add edi, 0x19
push edi
call fcn.00442528
and dword [ebp + 0xc], 0
and dword [ebp + 0x64], 0
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x38]
pop ecx
pop ecx
mov dword [ebp + 0x20], eax
mov eax, dword [ebp + 0x20]
cmp byte [eax + 0x13], 0x33
jne 0x44a519
mov ecx, eax
movzx edi, byte [ecx + 0x18]
lea eax, [ecx + edi]
movzx edx, byte [eax + 0x19]
lea ebx, [ecx + edx]
movzx ebx, byte [ebx + edi + 0x36]
add ebx, edx
add ecx, ebx
add ecx, edi
mov dword [ebp - 0x1c], edx
movzx edx, byte [ecx + 0x37]
push edx
add ecx, 0x38
add eax, 0x1a
push ecx
mov dword [ebp + 0x18], edx
mov dword [ebp - 0x28], eax
call fcn.00442528
mov edx, dword [ebp + 0x18]
pop ecx
pop ecx
mov ecx, dword [ebp + 0x64]
add ecx, edx
mov edx, dword [ebp + 0x38]
add ecx, ebx
add ecx, edi
cmp dword [ebp - 0x2c], eax
lea ecx, [ecx + edx + 0x38]
mov dword [ebp - 0x34], ecx
jne 0x44a519
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp + 0x64]
add eax, ecx
add eax, edi
mov ecx, edx
lea edi, [eax + ecx]
lea eax, [edi + 0x2e]
push 8
push eax
call fcn.00442528
mov ebx, eax
mov eax, edx
push 8
add edi, 0x26
push edi
mov dword [ebp + 0x18], eax
call fcn.00442528
add esp, 0x10
push dword [ebp + 4]
add ebx, eax
mov eax, dword [ebp + 0x18]
push dword [ebp]
adc eax, edx
add ebx, dword [ebp + 0x74]
adc eax, dword [ebp + 0x78]
push eax
push ebx
call fcn.004adbb0
mov edi, eax
mov eax, dword [ebp - 0x34]
movzx ecx, byte [eax]
push ecx
inc eax
push eax
mov ebx, edx
call fcn.00442528
cmp dword [ebp + 0x28], eax
pop ecx
pop ecx
je 0x44a56a
mov eax, dword [ebp + 0x40]
inc dword [ebp + 0xc]
add dword [ebp + 0x64], eax
add dword [ebp + 0x20], eax
mov eax, dword [ebp + 0xc]
cdq
cmp edx, dword [ebp + 0x54]
jl 0x44a458
jg 0x44a53d
cmp eax, dword [ebp + 0x50]
jb 0x44a458
inc dword [ebp + 0x14]
mov edi, dword [ebp - 0x14]
mov eax, dword [ebp + 0x14]
add edi, dword [ebp + 0x40]
cdq
cmp edx, dword [ebp + 0x54]
mov dword [ebp - 0x14], edi
jl 0x44a40b
jg 0x44a640
cmp eax, dword [ebp + 0x50]
jb 0x44a40b
jmp 0x44a640
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x1c]
mov dword [esi - 0x2a], ebx
lea ebx, [eax + ecx]
cmp eax, ebx
mov dword [esi - 0x2e], edi
mov edi, eax
jae 0x44a62f
xor edx, edx
cmp byte [edi], 0x2d
jne 0x44a626
inc edi
xor ecx, ecx
cmp edi, ebx
jae 0x44a5b7
xor edx, edx
mov dl, byte [edi]
push edx
call fcn.004448e0
add esp, 4
test al, al
je 0x44a5b5
lea eax, [ecx + ecx*4]
movsx ecx, dl
inc edi
cmp edi, ebx
lea ecx, [ecx + eax*2 - 0x30]
jb 0x44a595
xor edx, edx
cmp ecx, edx
mov eax, dword [ebp - 0x10]
mov dword [esi - 0x26], eax
mov eax, dword [ebp - 0xc]
mov dword [esi - 0x1e], ecx
mov dword [esi - 0x22], eax
jle 0x44a626
movsx eax, word [ebp + 0x1c]
cmp eax, ecx
jne 0x44a610
cmp dword [ebp + 0x7c], edx
jle 0x44a5e0
cmp byte [ebp + 0x6b], 0
je 0x44a5e8
cmp dword [ebp + 0x7c], edx
jge 0x44a626
cmp byte [ebp + 0x6b], 0
je 0x44a626
cmp word [ebp + 0x1c], dx
jle 0x44a5f5
mov eax, 0x80
jmp 0x44a5f7
xor eax, eax
cmp dword [ebp - 0x18], edx
mov ecx, dword [ebp + 0x24]
mov byte [ecx], al
mov byte [ebp + 0x73], 1
jne 0x44a626
mov eax, dword [ebp + 0x34]
add eax, 0xffffffe7
mov dword [ebp - 0x18], eax
jmp 0x44a626
cmp dword [ebp - 0x24], edx
je 0x44a626
cmp dword [ebp + 0x7c], edx
jle 0x44a626
cmp byte [ebp + 0x6b], 0
je 0x44a626
mov eax, dword [ebp + 0x24]
mov byte [eax], 0
inc edi
cmp edi, ebx
jb 0x44a585
mov eax, dword [ebp - 4]
add esi, 0x90
cmp eax, dword [ebp + 0x10]
mov dword [ebp + 0x48], eax
jge 0x44a655
mov eax, dword [ebp + 0x40]
add dword [ebp + 0x34], eax
mov eax, dword [ebp + 0x10]
inc dword [ebp + 0x3c]
cmp dword [ebp + 8], eax
jl 0x44a2a0
cmp byte [ebp + 0x73], 0
je 0x44a696
push 0
push dword [ebp + 0x30]
push dword [ebp + 0x2c]
push dword [ebp + 0x60]
call fcn.0043f9d0
add esp, 0x10
cmp eax, dword [ebp + 0x2c]
jne 0x44a693
cmp edx, dword [ebp + 0x30]
jne 0x44a693
mov esi, dword [ebp - 0x20]
push 0
lea eax, [ebp + 0x4c]
push eax
push esi
push dword [ebp + 0x38]
push dword [ebp + 0x60]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp esi, dword [ebp + 0x4c]
je 0x44a696
neg dword [ebp + 0x48]
push dword [ebp + 0x48]
push 0x35b3
push str._d:__nPart_d_r_n
push 0x4dc0f8
call fcn.00411099
mov eax, dword [ebp + 0x48]
add esp, 0x10
pop edi
pop esi
pop ebx
add ebp, 0x58
leave
ret