Function at 0x10050c44
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008a516
mov eax, dword fs:[0]
push eax
mov eax, 0x4b34
call fcn.10062090
mov eax, dword [0x1009a008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x4b00], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x4b10], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x4b18], eax
mov eax, dword [ebp + 0x18]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x4af4], eax
xor eax, eax
xor ebx, ebx
mov byte [ebp - 0x3adc], bl
lea edi, [ebp - 0x3adb]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x50
stosb byte es:[edi], al
lea eax, [ebp - 0x3acc]
push ebx
push eax
mov dword [ebp - 0x4b08], ecx
mov dword [ebp - 0x4ae4], ebx
call fcn.100620c0
push 0x1003
lea eax, [ebp - 0x4adf]
push ebx
push eax
mov byte [ebp - 0x4ae0], bl
call fcn.100620c0
xor eax, eax
mov dword [ebp - 0x4b30], ebx
lea edi, [ebp - 0x4b2c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x4f
stosd dword es:[edi], eax
lea eax, [ebp - 0x3a7b]
push ebx
push eax
mov byte [ebp - 0x3a7c], bl
call fcn.100620c0
xor eax, eax
mov dword [ebp - 0x4b40], ebx
lea edi, [ebp - 0x4b3c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x103
stosd dword es:[edi], eax
lea eax, [ebp - 0x127]
push ebx
push eax
mov byte [ebp - 0x128], bl
call fcn.100620c0
xor eax, eax
lea edi, [ebp - 0x17]
mov byte [ebp - 0x18], bl
stosd dword es:[edi], eax
mov byte [ebp - 0x24], bl
lea edi, [ebp - 0x23]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x7ff
stosb byte es:[edi], al
lea eax, [ebp - 0x1a2b]
push ebx
push eax
mov dword [ebp - 0x4b0c], ebx
mov byte [ebp - 0x1a2c], bl
call fcn.100620c0
mov edi, 0xfff
push edi
lea eax, [ebp - 0x122b]
push ebx
push eax
mov dword [ebp - 0x4af0], 0x800
mov byte [ebp - 0x122c], bl
call fcn.100620c0
add esp, 0x48
push edi
lea eax, [ebp - 0x2a2b]
push ebx
push eax
mov byte [ebp - 0x2a2c], bl
call fcn.100620c0
push edi
lea eax, [ebp - 0x3a2b]
push ebx
push eax
mov byte [ebp - 0x3a2c], bl
call fcn.100620c0
mov edi, 0x104
push edi
lea eax, [ebp - 0x22c]
push ebx
push eax
mov byte [ebp - 0x4af9], bl
call fcn.100620c0
add esp, 0x24
lea eax, [ebp - 0x4b0c]
push eax
lea eax, [ebp - 0x22c]
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
jne 0x10050e3e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x1010
mov esi, eax
call fcn.10062b5c
pop ecx
mov dword [ebp - 0x4af4], eax
mov dword [ebp - 4], ebx
cmp eax, ebx
je 0x10050e21
push esi
push 0x10008178
push esi
push 5
push eax
call fcn.10037a50
add esp, 0x14
jmp 0x10050e23
xor eax, eax
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x4aec], eax
push 0x1008bdb8
lea eax, [ebp - 0x4aec]
push eax
call fcn.1006330f
mov esi, 0x1000
push esi
lea eax, [ebp - 0x122c]
push ebx
push eax
call fcn.100620c0
mov ecx, dword [ebp - 0x4b08]
add esp, 0xc
push ebx
push ebx
push ebx
push ebx
push esi
lea eax, [ebp - 0x122c]
push eax
call fcn.10040fcc
movzx eax, byte [ebp - 0x1226]
shr eax, 5
and eax, 3
inc eax
push esi
mov dword [ebp - 0x4b14], eax
lea eax, [ebp - 0x2a2c]
push ebx
push eax
call fcn.100620c0
mov ecx, dword [ebp - 0x4b08]
add esp, 0xc
push ebx
push 1
push ebx
push ebx
push esi
lea eax, [ebp - 0x2a2c]
push eax
call fcn.10040fcc
cmp byte [ebp - 0x2a28], 1
jne 0x10050f16
xor eax, eax
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
stosb byte es:[edi], al
xor eax, eax
lea edi, [ebp - 0x24]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x800
stosw word es:[edi], ax
lea eax, [ebp - 0x1a2c]
push ebx
push eax
mov byte [ebp - 0x4af9], 1
call fcn.100620c0
mov eax, dword [ebp - 0x4b10]
mov ecx, dword [ebp - 0x4b08]
add esp, 0xc
add eax, 4
push eax
lea eax, [ebp - 0x4b01]
push eax
lea eax, [ebp - 0x1a2c]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 0x4b01], bl
call fcn.1004c7df
mov edi, dword [ebp - 0x4af0]
jmp 0x10050f1e
xor edi, edi
mov dword [ebp - 0x4af0], edi
push 0x60
lea eax, [ebp - 0x3adc]
push ebx
push eax
call fcn.100620c0
push 0x11
lea eax, [ebp - 0x3adc]
push 0x10001a34
push eax
call fcn.10062770
mov eax, dword [ebp - 0x4b10]
movzx ax, byte [eax + 9]
mov word [ebp - 0x3ac8], ax
xor eax, eax
cmp eax, edi
mov word [ebp - 0x3ac2], ax
mov word [ebp - 0x3ac0], ax
mov word [ebp - 0x3abe], ax
sbb eax, eax
and eax, 0x60
mov dword [ebp - 0x3abc], eax
push 5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x3aab]
push eax
mov byte [ebp - 0x3acc], 1
mov byte [ebp - 0x3acb], bl
mov byte [ebp - 0x3aca], 0x10
mov byte [ebp - 0x3ac6], 2
mov word [ebp - 0x3ac4], di
mov dword [ebp - 0x3ab8], ebx
mov dword [ebp - 0x3ab4], ebx
mov dword [ebp - 0x3ab0], ebx
mov byte [ebp - 0x3aac], bl
call fcn.10062770
push 0xa
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x3aa6]
push eax
call fcn.10062770
lea eax, [edi + 0x60]
mov dword [ebp - 0x3a9c], eax
mov eax, dword [ebp - 0x4b14]
imul eax, eax, 0x1004
mov dword [ebp - 0x4aec], eax
add eax, edi
add esp, 0x30
mov dword [ebp - 0x4ae8], eax
add eax, 0x60
push ebx
mov dword [ebp - 0x3a8c], eax
lea eax, [ebp - 0x4ae4]
push eax
push 0x60
lea eax, [ebp - 0x3adc]
push eax
push dword [ebp - 0x4b00]
mov dword [ebp - 0x3a88], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1005105d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x1010
mov esi, eax
call fcn.10062b5c
pop ecx
mov dword [ebp - 0x4af4], eax
mov dword [ebp - 4], 1
cmp eax, ebx
je 0x10050e21
push esi
push 0x10008110
jmp 0x10050e13
cmp dword [ebp - 0x4ae4], 0x60
je 0x100510a4
push 0x1010
call fcn.10062b5c
pop ecx
mov dword [ebp - 0x4af4], eax
mov dword [ebp - 4], 2
cmp eax, ebx
je 0x10050e21
push 0x60
push dword [ebp - 0x4ae4]
push 0x10008090
push ebx
push 0xa
push eax
call fcn.10037a50
add esp, 0x18
jmp 0x10050e23
cmp edi, ebx
jbe 0x1005113d
push ebx
lea eax, [ebp - 0x4ae4]
push eax
mov edi, 0x800
push edi
lea eax, [ebp - 0x1a2c]
push eax
push dword [ebp - 0x4b00]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x10051104
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x1010
mov esi, eax
call fcn.10062b5c
pop ecx
mov dword [ebp - 0x4af4], eax
mov dword [ebp - 4], 3
cmp eax, ebx
je 0x10050e21
push esi
push 0x10008030
jmp 0x10050e13
cmp dword [ebp - 0x4ae4], edi
je 0x1005113d
push 0x1010
call fcn.10062b5c
pop ecx
mov dword [ebp - 0x4af4], eax
mov dword [ebp - 4], 4
cmp eax, ebx
je 0x10050e21
push edi
push dword [ebp - 0x4ae4]
push 0x10007fb8
jmp 0x10051093
cmp dword [ebp - 0x4b14], ebx
mov dword [ebp - 0x4af8], ebx
jle 0x100512f4
mov edi, 0x1004
push esi
lea eax, [ebp - 0x122c]
push ebx
push eax
call fcn.100620c0
mov ecx, dword [ebp - 0x4b08]
add esp, 0xc
push ebx
push ebx
push ebx
push ebx
push esi
lea eax, [ebp - 0x122c]
push eax
call fcn.10040fcc
lea eax, [ebp - 0x1228]
push eax
call sym.StarBurn.dll_StarBurn_SetFastReadTOCLastTrack
push esi
lea eax, [ebp - 0x2a2c]
push ebx
push eax
call fcn.100620c0
mov ecx, dword [ebp - 0x4b08]
add esp, 0xc
push ebx
push 1
push ebx
push ebx
push esi
lea eax, [ebp - 0x2a2c]
push eax
call fcn.10040fcc
push esi
lea eax, [ebp - 0x3a2c]
push ebx
push eax
call fcn.100620c0
mov ecx, dword [ebp - 0x4b08]
add esp, 0xc
push ebx
push 4
push ebx
push ebx
push esi
lea eax, [ebp - 0x3a2c]
push eax
call fcn.10040fcc
push edi
lea eax, [ebp - 0x4ae0]
push ebx
push eax
call fcn.100620c0
mov al, byte [ebp - 0x2a28]
mov byte [ebp - 0x4ae0], al
mov al, byte [ebp - 0x2a27]
mov byte [ebp - 0x4adf], al
push 0x800
lea eax, [ebp - 0x3a28]
push eax
lea eax, [ebp - 0x4adc]
push eax
call fcn.10062770
mov al, byte [ebp - 0x1228]
mov byte [ebp - 0x42dc], al
mov al, byte [ebp - 0x1227]
mov byte [ebp - 0x42db], al
mov al, byte [ebp - 0x1226]
xor al, byte [ebp - 0x42da]
push 3
and al, 0x7f
xor byte [ebp - 0x42da], al
mov al, byte [ebp - 0x1225]
mov byte [ebp - 0x42d9], al
lea eax, [ebp - 0x1223]
push eax
lea eax, [ebp - 0x42d7]
push eax
call fcn.10062770
push 3
lea eax, [ebp - 0x121f]
push eax
lea eax, [ebp - 0x42d3]
push eax
call fcn.10062770
push 3
lea eax, [ebp - 0x121b]
push eax
lea eax, [ebp - 0x42cf]
push eax
call fcn.10062770
mov al, byte [ebp - 0x1218]
xor al, byte [ebp - 0x42cc]
add esp, 0x3c
and al, 0x7f
xor al, byte [ebp - 0x1218]
push ebx
mov byte [ebp - 0x42cc], al
lea eax, [ebp - 0x4ae4]
push eax
push edi
lea eax, [ebp - 0x4ae0]
push eax
push dword [ebp - 0x4b00]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x100513b1
cmp dword [ebp - 0x4ae4], edi
jne 0x100513f5
inc dword [ebp - 0x4af8]
mov eax, dword [ebp - 0x4af8]
cmp eax, dword [ebp - 0x4b14]
jl 0x10051154
xor eax, eax
push 6
pop ecx
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea edi, [ebp - 0x4b30]
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x4b10]
mov eax, dword [eax + 0x16]
mov edi, dword [ebp - 0x4ae8]
inc eax
mov dword [ebp - 0x4b2c], eax
xor eax, eax
inc eax
mov word [ebp - 0x4b28], ax
mov byte [ebp - 0x4b26], al
mov word [ebp - 0x4b24], ax
mov word [ebp - 0x4b22], ax
lea eax, [edi + 0x78]
push ebx
mov dword [ebp - 0x4b1c], eax
lea eax, [ebp - 0x4ae4]
push eax
push 0x18
lea eax, [ebp - 0x4b30]
push eax
push dword [ebp - 0x4b00]
mov dword [ebp - 0x4b30], ebx
mov byte [ebp - 0x4b25], 3
call esi
test eax, eax
jne 0x10051454
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x1010
mov esi, eax
call fcn.10062b5c
pop ecx
mov dword [ebp - 0x4af4], eax
mov dword [ebp - 4], 7
cmp eax, ebx
je 0x10051438
push esi
push 0x10007f50
push esi
push 5
push eax
call fcn.10037a50
add esp, 0x14
jmp 0x1005143a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x1010
mov esi, eax
call fcn.10062b5c
pop ecx
mov dword [ebp - 0x4af0], eax
push 5
pop eax
mov dword [ebp - 4], eax
cmp dword [ebp - 0x4af0], ebx
je 0x10050e21
push esi
push dword [ebp - 0x4af8]
push 0x10007ee0
push esi
push eax
push dword [ebp - 0x4af0]
jmp 0x10051097
push 0x1010
call fcn.10062b5c
pop ecx
mov dword [ebp - 0x4af4], eax
mov dword [ebp - 4], 6
cmp eax, ebx
je 0x10050e21
push edi
push dword [ebp - 0x4ae4]
push dword [ebp - 0x4af8]
push 0x10007e60
push ebx
push 0xa
push eax
call fcn.10037a50
add esp, 0x1c
jmp 0x10050e23
xor eax, eax
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x4ae8], eax
push 0x1008bdb8
lea eax, [ebp - 0x4ae8]
jmp 0x10050e38
cmp dword [ebp - 0x4ae4], 0x18
je 0x10051494
push 0x1010
call fcn.10062b5c
pop ecx
mov dword [ebp - 0x4af4], eax
mov dword [ebp - 4], 8
cmp eax, ebx
je 0x10051438
push 0x18
push dword [ebp - 0x4ae4]
push 0x10007de0
push ebx
push 0xa
push eax
call fcn.10037a50
add esp, 0x18
jmp 0x1005143a
push 0x50
lea eax, [ebp - 0x3a7c]
push ebx
push eax
call fcn.100620c0
mov eax, dword [ebp - 0x4b10]
mov eax, dword [eax + 0x16]
and byte [ebp - 0x3a7b], 0x80
add esp, 0xc
inc eax
mov dword [ebp - 0x3a70], eax
mov eax, 0x800
mov word [ebp - 0x3a6c], ax
mov eax, dword [ebp + 0x1c]
push ebx
mov dword [ebp - 0x3a4c], eax
lea eax, [ebp - 0x4ae4]
push eax
push 0x50
lea eax, [ebp - 0x3a7c]
push eax
push dword [ebp - 0x4b00]
add edi, 0xc8
mov byte [ebp - 0x3a7c], 2
mov byte [ebp - 0x3a7a], 0x14
mov byte [ebp - 0x3a79], bl
mov byte [ebp - 0x3a78], 1
mov byte [ebp - 0x3a77], bl
mov byte [ebp - 0x3a76], bl
mov byte [ebp - 0x3a75], bl
mov dword [ebp - 0x3a74], ebx
mov dword [ebp - 0x3a58], ebx
mov dword [ebp - 0x3a54], ebx
mov dword [ebp - 0x3a50], ebx
mov dword [ebp - 0x3a48], edi
mov dword [ebp - 0x3a44], ebx
call esi
test eax, eax
jne 0x10051579
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x1010
mov esi, eax
call fcn.10062b5c
pop ecx
mov dword [ebp - 0x4af4], eax
mov dword [ebp - 4], 9
cmp eax, ebx
je 0x10051438
push esi
push 0x10007d78
jmp 0x100513a0
cmp dword [ebp - 0x4ae4], 0x50
je 0x100515bf
push 0x1010
call fcn.10062b5c
pop ecx
mov dword [ebp - 0x4af0], eax
push 0xa
pop eax
mov dword [ebp - 4], eax
cmp dword [ebp - 0x4af0], ebx
je 0x10051438
push 0x50
push dword [ebp - 0x4ae4]
push 0x10007cf8
push ebx
push eax
push dword [ebp - 0x4af0]
jmp 0x1005148a
push 0x104
lea eax, [ebp - 0x128]
push ebx
push eax
call fcn.100620c0
push dword [ebp - 0x4b0c]
lea eax, [ebp - 0x128]
push 0x10005da8
push eax
call fcn.10062ada
lea eax, [ebp - 0x128]
add esp, 0x18
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x100515f4
sub eax, esi
lea esi, [eax + 1]
mov eax, dword [ebp - 0x4af0]
lea ecx, [esi + 0x10]
imul ecx, dword [ebp + 0x1c]
add ecx, dword [ebp - 0x4aec]
cmp dword [ebp + 0x1c], ebx
lea ecx, [ecx + eax + 0xc8]
mov dword [ebp - 0x4ae8], ecx
mov dword [ebp - 0x4af8], ebx
jle 0x100516a7
mov ecx, dword [ebp + 0x1c]
shl ecx, 4
add ecx, dword [ebp - 0x4aec]
lea eax, [ecx + eax + 0xc8]
mov dword [ebp - 0x4af0], eax
xor eax, eax
lea edi, [ebp - 0x4b40]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp - 0x4af0]
push ebx
mov dword [ebp - 0x4b40], eax
lea eax, [ebp - 0x4ae4]
push eax
push 0x10
lea eax, [ebp - 0x4b40]
push eax
push dword [ebp - 0x4b00]
mov dword [ebp - 0x4b38], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x100516ee
cmp dword [ebp - 0x4ae4], 0x10
jne 0x1005172a
inc dword [ebp - 0x4af8]
mov eax, dword [ebp - 0x4af8]
add dword [ebp - 0x4af0], esi
cmp eax, dword [ebp + 0x1c]
jl 0x10051644
xor edi, edi
cmp dword [ebp + 0x1c], ebx
jle 0x100517b9
push 0x104
lea eax, [ebp - 0x128]
push ebx
push eax
call fcn.100620c0
add esp, 0xc
lea eax, [ebp - 0x128]
cmp edi, ebx
jne 0x1005176e
push dword [ebp - 0x4b0c]
push 0x10005da8
push eax
call fcn.10062ada
add esp, 0xc
jmp 0x10051783
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x1010
mov esi, eax
call fcn.10062b5c
pop ecx
mov dword [ebp - 0x4af4], eax
mov dword [ebp - 4], 0xb
cmp eax, ebx
je 0x10051438
push esi
push dword [ebp - 0x4af8]
push 0x10007c88
push esi
push 5
jmp 0x10051489
push 0x1010
call fcn.10062b5c
pop ecx
mov dword [ebp - 0x4af4], eax
mov dword [ebp - 4], 0xc
cmp eax, ebx
je 0x10051438
push 0x10
push dword [ebp - 0x4ae4]
push dword [ebp - 0x4af8]
push 0x10007c08
push ebx
push 0xa
push eax
call fcn.10037a50
add esp, 0x1c
jmp 0x1005143a
push edi
push dword [ebp - 0x4b0c]
push 0x10007c00
push eax
call fcn.10062ada
add esp, 0x10
push ebx
lea eax, [ebp - 0x4ae4]
push eax
push esi
lea eax, [ebp - 0x128]
push eax
push dword [ebp - 0x4b00]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x100517fd
cmp dword [ebp - 0x4ae4], esi
jne 0x10051831
inc edi
cmp edi, dword [ebp + 0x1c]
jl 0x100516b2
push dword [ebp - 0x4b00]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov eax, dword [ebp - 0x4b18]
mov ecx, dword [ebp - 0x4ae8]
mov dword [eax], ecx
mov al, byte [ebp - 0x4af9]
mov ecx, dword [ebp - 0x4af4]
mov byte [ecx], al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10062074
leave
ret 0x18
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x1010
mov esi, eax
call fcn.10062b5c
pop ecx
mov dword [ebp - 0x4af4], eax
mov dword [ebp - 4], 0xd
cmp eax, ebx
je 0x10051438
push esi
push edi
push 0x10007b98
jmp 0x10051722
push 0x1010
call fcn.10062b5c
pop ecx
mov dword [ebp - 0x4af4], eax
mov dword [ebp - 4], 0xe
cmp eax, ebx
je 0x10051868
push esi
push dword [ebp - 0x4ae4]
push edi
push 0x10007b18
push ebx
push 0xa
push eax
call fcn.10037a50
add esp, 0x1c
jmp 0x1005186a
xor eax, eax
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x4af0], eax
push 0x1008bdb8
lea eax, [ebp - 0x4af0]
jmp 0x10050e38