Function at 0x433528
Capabilities:
Delete file
Write file on windows

Disassembly:
mov eax, 0x4be2ab
call fcn.00483820
sub esp, 0x21c
push ebx
push esi
mov dword [ebp - 0x18], ecx
push edi
xor ebx, ebx
lea ecx, [ebp - 0x88]
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x20], ebx
call fcn.0049c82d
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 4], ebx
call fcn.0049b2b0
lea eax, [ebp - 0x228]
mov byte [ebp - 0x11], 0x80
push eax
push dword [ebp + 0x10]
call fcn.0049d666
test eax, eax
je 0x433583
mov al, byte [ebp - 0x218]
and al, 2
cmp al, 2
jne 0x433583
mov byte [ebp - 0x11], 0x82
cmp dword [ebp + 0x20], ebx
jne 0x4335a9
movzx eax, byte [ebp - 0x11]
push ebx
push eax
push 4
push ebx
push 3
push 0xc0000000
push dword [ebp + 0x10]
mov dword [ebp - 0x28], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp + 0x20], eax
jmp 0x4335b0
mov dword [ebp - 0x28], 1
cmp dword [ebp + 0x20], 0xffffffff
jne 0x4335cf
mov ecx, dword [ebp - 0x18]
push 0x30
push 0x4eafec
push str.File_Error
call fcn.004995e0
jmp 0x433bd2
push ebx
push ebx
push ebx
push dword [ebp + 0x20]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x433600
cmp dword [ebp - 0x28], ebx
jne 0x433bd2
push dword [ebp + 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x433bd2
push dword [ebp + 0x20]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push 2
pop eax
cmp dword [ebp + 0x1c], eax
jne 0x433619
cmp dword [ebp + 0x14], ebx
jne 0x433619
mov dword [ebp + 0x14], eax
mov dword [ebp - 0x1c], ebx
cmp dword [ebp - 0x1c], ebx
jne 0x433701
lea ecx, [ebp - 0x6c]
call fcn.0049d3ed
mov ecx, dword [ebp + 8]
push ebx
push dword [ebp + 0x14]
mov byte [ebp - 4], 2
mov eax, dword [ecx]
mov dword [ebp - 0x1c], 1
call dword [eax + 0x28]
jmp 0x4336f4
mov dword [ebp - 4], ebx
call fcn.0049d42b
jmp 0x43361c
mov eax, dword [0x4eb298]
mov edi, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
add eax, 2
push eax
push 2
call edi
cmp eax, ebx
mov dword [ebp - 0x34], eax
jne 0x433720
call fcn.00493d85
push dword [ebp - 0x34]
mov esi, dword [sym.imp.KERNEL32.dll_GlobalLock]
call esi
cmp dword [ebp + 0x1c], ebx
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x44], ebx
je 0x4337b1
cmp dword [ebp + 0x1c], 1
mov eax, dword [0x4eb298]
jne 0x43374d
lea eax, [eax + eax + 4]
jmp 0x43374e
inc eax
push eax
push 2
mov dword [ebp - 0x44], eax
call edi
cmp eax, ebx
mov dword [ebp - 0x1c], eax
je 0x433767
push eax
call esi
cmp eax, ebx
mov dword [ebp - 0x30], eax
jne 0x4337b1
mov ecx, dword [ebp - 0x18]
push 0x30
push str.Cannot_allocate_memory
push str.Cant_allocate_memory_for_UNICODE_conversion
call fcn.004995e0
cmp dword [ebp - 0x28], ebx
jne 0x433792
push dword [ebp + 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [ebp - 0x18]
call fcn.0049b2c5
jmp 0x433bd2
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x40], 1
cmp dword [ebp - 0x3c], ebx
jne 0x433ad4
lea ecx, [ebp - 0x78]
mov dword [ebp - 0x20], ebx
call fcn.0049d3ed
mov ecx, dword [ebp + 8]
push dword [0x4eb298]
mov byte [ebp - 4], 8
mov eax, dword [ecx]
push dword [ebp - 0x38]
call dword [eax + 0x34]
mov dword [ebp - 0x24], eax
jmp 0x433893
mov dword [ebp - 4], ebx
call fcn.0049d42b
cmp dword [ebp - 0x20], ebx
jne 0x4337bb
lea ecx, [ebp - 0x54]
call fcn.0049d3ed
mov ecx, dword [ebp + 0x18]
mov byte [ebp - 4], 0xe
cmp ecx, 0xffffffff
je 0x4338c9
mov eax, ecx
sub eax, dword [ebp - 0x24]
cmp eax, ebx
jle 0x4338c6
mov dword [ebp + 0x18], eax
jmp 0x4338c9
mov dword [ebp - 0x24], ecx
cmp dword [ebp + 0x1c], ebx
je 0x43396b
cmp dword [ebp + 0x1c], 1
jne 0x433945
mov esi, dword [ebp - 0x24]
cmp esi, dword [0x4eb298]
jl 0x4338fa
dec esi
cmp esi, ebx
jle 0x4338f9
mov eax, dword [ebp - 0x38]
mov al, byte [esi + eax]
push eax
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
test eax, eax
jne 0x4338e3
inc esi
push dword [ebp - 0x44]
push dword [ebp - 0x30]
push esi
push dword [ebp - 0x38]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, dword [ebp + 8]
sub esi, dword [ebp - 0x24]
mov edi, eax
push 1
mov eax, dword [ecx]
push esi
shl edi, 1
call dword [eax + 0x28]
cmp dword [ebp - 0x40], ebx
je 0x433960
lea eax, [ebp - 0x2c]
push ebx
push eax
push 2
push 0x4eb29c
mov dword [ebp - 0x40], ebx
push dword [ebp + 0x20]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x433960
or dword [ebp - 0x2c], 0xffffffff
jmp 0x433960
mov eax, dword [ebp - 0x24]
push ebx
push ebx
push dword [ebp - 0x44]
shr eax, 1
push dword [ebp - 0x30]
push eax
push dword [ebp - 0x38]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
lea eax, [ebp - 0x2c]
push ebx
push eax
push edi
push dword [ebp - 0x30]
jmp 0x433977
mov edi, dword [ebp - 0x24]
lea eax, [ebp - 0x2c]
push ebx
push eax
push edi
push dword [ebp - 0x38]
push dword [ebp + 0x20]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x433988
or dword [ebp - 0x2c], 0xffffffff
mov eax, dword [ebp - 0x24]
push 1
cmp eax, dword [0x4eb298]
pop esi
jge 0x433999
mov dword [ebp - 0x3c], esi
cmp dword [ebp - 0x2c], 0xffffffff
je 0x4339a8
cmp dword [ebp - 0x2c], edi
je 0x433a2b
cmp dword [ebp - 0x28], ebx
jne 0x4339bf
push dword [ebp + 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp + 0x10]
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x20], esi
call fcn.0049b86d
mov esi, eax
push str.Drive_Full____Error_writing_temp_file:
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0xf
call fcn.0049b86d
push esi
push eax
lea eax, [ebp - 0x5c]
mov byte [ebp - 4], 0x10
push eax
call fcn.0049b9e2
mov eax, dword [eax]
mov ecx, dword [ebp - 0x18]
push ebx
push 0x4eafec
push eax
mov byte [ebp - 4], 0x11
call fcn.004995e0
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 0x10
call fcn.0049b7ff
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0xf
call fcn.0049b7ff
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0xe
call fcn.0049b7ff
mov dword [ebp - 4], ebx
call fcn.0049d42b
jmp 0x4337bb
cmp dword [ebp + 0x20], ebx
je 0x433b97
lea ecx, [ebp - 0x54]
call fcn.0049d3ed
cmp dword [ebp - 0x28], ebx
mov byte [ebp - 4], 0x17
jne 0x433b8f
push dword [ebp + 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x433b8f
movzx eax, word [ebp - 0x10e]
push ebx
push eax
call fcn.0049e0ed
jmp 0x433b8f
mov dword [ebp - 4], ebx
call fcn.0049d42b
cmp dword [ebp - 0x1c], ebx
je 0x433bae
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [ebp - 0x18]
call fcn.0049b2c5
xor eax, eax
cmp dword [ebp - 0x20], ebx
sete al
mov ebx, eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x88]
call fcn.0049c922
mov eax, ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0x1c