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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x16a8
call fcn.0047db00
mov eax, dword [0x4af480]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0xffffffffffffffeb
push dword [0x4b4e4c]
mov esi, ecx
mov dword [ebp - 0x1680], edx
mov dword [ebp - 0x1678], esi
xor edi, edi
mov dword [ebp - 0x1690], eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov ecx, dword [esi + 0x23c]
xorps xmm0, xmm0
mov edx, dword [ebp - 0x1690]
or ebx, 0xffffffff
mov dword [ebp - 0x1688], eax
xor esi, esi
mov eax, dword [ebp - 0x1680]
mov dword [ebp - 0x16a0], ecx
movlpd qword [ebp - 0x169c], xmm0
mov dword [ebp - 0x168c], edi
push dword [eax + 0x34]
lea eax, [ebp - 0x41c]
push ecx
push ecx
mov ecx, dword [ebp - 0x1678]
push eax
add ecx, 0x18
call fcn.00432820
mov eax, dword [ebp - 0x1680]
add esp, 0x10
push dword [eax + 0x34]
call fcn.004379d0
mov eax, dword [ebp - 0x1680]
lea ecx, [ebp - 0x168c]
push ecx
add eax, 0x10
push esi
push dword [ebp - 0x1690]
mov dword [ebp - 0x16a8], eax
push dword [eax]
call fcn.00437aa0
test al, al
je 0x435c49
push esi
push dword [ebp - 0x168c]
call fcn.004387d0
mov ecx, eax
mov dword [ebp - 0x1684], ecx
test ecx, ecx
jne 0x435690
mov eax, dword [ebp - 0x1678]
test dword [eax + 0x23c], 0x8000
jne 0x435c3c
nop word [eax + eax]
lea eax, [ebp - 0x141c]
mov dword [ebp - 0x1674], 0
mov dword [ebp - 0x167c], eax
mov eax, dword [0x4b4fa4]
test eax, eax
je 0x4356b9
test byte [eax + 0x40], 1
jne 0x43598b
mov eax, dword [ebp - 0x168c]
mov esi, 0x1000
cmp ecx, esi
mov dword [ebp - 0x1694], eax
cmovb esi, ecx
xor ecx, ecx
push ecx
mov dword [ebp - 0x1670], ecx
lea ecx, [ebp - 0x1674]
push ecx
push esi
lea ecx, [ebp - 0x141c]
push ecx
push eax
call fcn.00438850
test al, al
jne 0x435747
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1670], eax
cmp eax, 0x26
jne 0x43570c
xor ecx, ecx
mov dword [ebp - 0x1670], ecx
jmp 0x435751
test byte [ebp - 0x16a0], 1
je 0x435749
push 1
push 0
push esi
push dword [ebp - 0x1694]
call fcn.00438ae0
push esi
lea eax, [ebp - 0x141c]
push 0
push eax
call fcn.0047ee20
add esp, 0xc
mov dword [ebp - 0x1674], esi
xor ecx, ecx
mov dword [ebp - 0x1670], ecx
jmp 0x435757
xor eax, eax
test eax, eax
jne 0x4359de
mov esi, dword [ebp - 0x1674]
cmp ebx, 0xffffffff
jne 0x4358e7
mov ecx, dword [0x4b4de4]
cmp esi, 0x18
jbe 0x4357bb
test cl, 0x20
je 0x4357bb
cmp word [ebp - 0x141c], 0x18
jne 0x4357bb
mov eax, dword [ebp - 0x1410]
mov edx, dword [ebp - 0x1684]
add eax, 0x18
cmp eax, edx
jne 0x4357bb
cmp byte [ebp - 0x141a], 4
jne 0x4357bb
mov eax, 0x18
lea ebx, [ebp - 0x141c]
sub edx, eax
add ebx, eax
sub esi, eax
mov dword [ebp - 0x1684], edx
mov dword [ebp - 0x167c], ebx
mov dword [ebp - 0x1674], esi
jmp 0x4357c1
mov ebx, dword [ebp - 0x167c]
cmp esi, 8
jbe 0x43583b
test cl, cl
jns 0x43583b
lea ecx, [ebp - 0x41c]
call fcn.00419300
mov esi, eax
test esi, esi
je 0x43583b
push 3
push 0x4a717c
push esi
call fcn.004869c4
add esp, 0xc
test eax, eax
jne 0x43583b
cmp dword [ebx], 0x5367674f
jne 0x43583b
cmp dword [ebx + 4], 0x200
jne 0x43583b
mov edx, 0x4a87b0
mov ecx, 4
sub edx, esi
nop dword [eax]
lea eax, [ecx + 0x7ffffffa]
test eax, eax
je 0x43582e
movzx eax, word [esi + edx]
test ax, ax
je 0x43582e
mov word [esi], ax
add esi, 2
sub ecx, 1
jne 0x435810
test ecx, ecx
lea eax, [esi - 2]
cmovne eax, esi
xor ecx, ecx
mov word [eax], cx
mov eax, dword [ebp - 0x1688]
xor edi, edi
mov esi, dword [eax + 0x2b4]
lea ebx, [eax + 0x2b4]
add eax, 0x29c
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp esi, ebx
je 0x4358ab
nop
lea eax, [ebp - 0x41c]
mov edi, esi
push eax
push dword [esi + 0x1c]
call fcn.004809a5
mov ecx, dword [esi]
add esp, 8
test eax, eax
je 0x435896
mov esi, ecx
cmp esi, ebx
jne 0x435860
mov eax, dword [ebp - 0x1688]
add eax, 0x29c
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor edi, edi
jmp 0x4358c5
mov eax, dword [esi + 4]
mov dword [eax], ecx
mov dword [ecx + 4], eax
mov dword [esi], 0
mov dword [esi + 4], 0
mov eax, dword [ebp - 0x1688]
add eax, 0x29c
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test edi, edi
je 0x4358c5
or dword [edi + 0x34], 1
mov ecx, dword [ebp - 0x1678]
lea edx, [ebp - 0x41c]
call fcn.00435190
mov ebx, eax
cmp ebx, 0xffffffff
je 0x435998
mov esi, dword [ebp - 0x1674]
test esi, esi
je 0x435949
push 0
lea eax, [ebp - 0x16a4]
push eax
push esi
push dword [ebp - 0x167c]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x16a4]
cmp eax, dword [ebp - 0x1674]
jne 0x4359d1
mov ecx, dword [ebp - 0x1678]
add dword [ecx + 8], eax
adc dword [ecx + 0xc], 0
xor edx, edx
push dword [ecx + 0xc]
push dword [ecx + 8]
call fcn.00415fe0
mov ecx, dword [ebp - 0x1684]
add esp, 8
sub ecx, dword [ebp - 0x1674]
mov dword [ebp - 0x1684], ecx
jne 0x435690
mov esi, dword [ebp - 0x1670]
push 0
push 8
lea eax, [ebp - 0x169c]
push eax
push 0x32
push dword [ebp - 0x168c]
call fcn.0043a390
cmp dword [ebp - 0x1698], 0
jne 0x435979
cmp dword [ebp - 0x169c], 0
je 0x4359e4
lea eax, [ebp - 0x169c]
push eax
push eax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
jmp 0x4359e4
mov esi, 0x4c7
mov dword [ebp - 0x1670], esi
jmp 0x4359e4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [ebp - 0x1670], esi
test esi, esi
je 0x43594f
test edi, edi
je 0x435c3c
push edi
push 0
push dword [0x4b3a28]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp - 0x168c]
call fcn.00437a40
jmp 0x435c51
mov esi, 0x70
mov dword [ebp - 0x1670], esi
jmp 0x4359e4
mov esi, dword [ebp - 0x1670]
cmp ebx, 0xffffffff
je 0x4359f0
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
jne 0x4359aa
mov ebx, dword [ebp - 0x1678]
test dword [ebx + 0x23c], 0x400
je 0x435ad2
lea ecx, [ebp - 0x41c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x435a13
mov eax, dword [ebx + 0x228]
sub ecx, edx
sar ecx, 1
lea esi, [ecx + 1]
mov ecx, dword [ebx + 0x22c]
add eax, esi
cmp eax, ecx
jbe 0x435a75
lea eax, [ecx + 0x1000]
mov ecx, dword [ebx + 0x224]
mov dword [ebx + 0x22c], eax
lea eax, [eax*2 + 0x16]
test ecx, ecx
jne 0x435a62
push eax
push 0x2042
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
jmp 0x435a6f
push 0x2042
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalReAlloc]
mov dword [ebx + 0x224], eax
mov eax, dword [ebx + 0x224]
test eax, eax
je 0x435acc
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x435acc
mov dword [eax], 0x14
lea ecx, [ebp - 0x41c]
mov dword [eax + 0x10], 1
mov edx, dword [ebx + 0x228]
push ecx
mov ecx, dword [ebx + 0x22c]
sub ecx, edx
inc ecx
lea eax, [eax + edx*2]
push ecx
add eax, 0x14
push eax
call fcn.00403240
push dword [ebx + 0x224]
add dword [ebx + 0x228], esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov esi, dword [ebp - 0x1670]
test dword [ebx + 0x23c], 0x800
je 0x4359aa
push 0x250
lea eax, [ebp - 0x166c]
add ebx, 0x10
push 0
push eax
mov dword [ebp - 0x1694], ebx
call fcn.0047ee20
add esp, 0xc
test edi, edi
jne 0x435c29
lea eax, [ebp - 0x166c]
push eax
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x435c3c
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x41c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x435b36
sub ecx, edx
sar ecx, 1
lea edx, [ecx*2 + 2]
mov ecx, dword [ebp - 0x1690]
mov dword [ebp - 0x1688], edx
lea esi, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x435b60
sub ecx, esi
add edx, 0x38
lea eax, [ecx + 1]
mov dword [ebp - 0x1684], eax
add eax, edx
push eax
push 8
push dword [0x4b3a28]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x435c36
mov edx, dword [ebp - 0x1654]
xor ecx, ecx
or ecx, dword [ebp - 0x1658]
xor eax, eax
mov dword [edi + 0x10], ecx
mov dword [edi + 0x14], edx
or eax, dword [ebp - 0x164c]
mov ecx, dword [ebp - 0x1650]
mov dword [edi + 0xc], ecx
mov ecx, dword [ebp - 0x1680]
mov dword [edi + 8], eax
mov eax, dword [ecx + 0x1c]
mov dword [edi + 0x28], eax
mov eax, dword [ecx + 0x34]
mov dword [edi + 0x2c], eax
mov eax, dword [ecx + 8]
test eax, eax
je 0x435bec
mov ebx, eax
mov dword [ebp - 0x1680], ebx
mov eax, dword [ebx + 8]
test eax, eax
jne 0x435bd1
mov ebx, dword [ebp - 0x1694]
mov ecx, dword [ebp - 0x1680]
push dword [ebp - 0x1688]
lea eax, [ebp - 0x41c]
mov dword [edi + 0x18], ecx
push eax
lea esi, [edi + 0x38]
push esi
call fcn.0047ef80
add esp, 0xc
mov dword [edi + 0x1c], esi
add esi, dword [ebp - 0x1688]
push dword [ebp - 0x1684]
push dword [ebp - 0x1690]
push esi
call fcn.0047ef80
add esp, 0xc
mov dword [edi + 0x20], esi
mov eax, dword [ebx + 4]
mov dword [edi], ebx
mov dword [edi + 4], eax
mov dword [eax], edi
mov dword [ebx + 4], edi
mov esi, dword [ebp - 0x1670]
push dword [ebp - 0x168c]
call fcn.00437a40
jmp 0x435c51
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
je 0x435d48
cmp esi, 0x4c7
je 0x435d48
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test byte [ebp - 0x16a0], 2
je 0x435c8e
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0047d2db
mov esp, ebp
pop ebp
ret
cmp esi, 0x570
jne 0x435ce5
mov eax, dword [ebp - 0x16a8]
push dword [eax]
call fcn.004461f0
test al, al
je 0x435ce5
test byte [0x4b4de0], 2
jne 0x435d48
mov eax, dword [ebp - 0x1678]
push 0x404050
push 0
push 0x1412
push dword [eax + 0x220]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0047d2db
mov esp, ebp
pop ebp
ret
cmp esi, 0x15
jne 0x435d09
mov eax, dword [ebp - 0x1678]
push 0x4b47c8
push 0x3ef
push 1
push dword [eax + 0x220]
call fcn.00416020
jmp 0x435d45
push 0x208
lea eax, [ebp - 0x41c]
push eax
push 0xffffffffffffffff
push dword [ebp - 0x1690]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [ebp - 0x41c]
push eax
mov eax, dword [ebp - 0x1678]
push esi
push 0xbb
push dword [eax + 0x220]
call fcn.004160c0
add esp, 0x10
mov ecx, dword [ebp - 8]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047d2db
mov esp, ebp
pop ebp
ret