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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4bb910
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x4ed310]
xor eax, esp
mov dword [esp + 0x48], eax
push ebx
push esi
push edi
mov eax, dword [0x4ed310]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
xor edi, edi
xor eax, eax
mov ebx, ecx
mov ecx, dword [ebp + 8]
mov word [esp + 0x3c], ax
mov eax, ecx
mov dword [esp + 0x50], 7
mov dword [esp + 0x4c], edi
lea esi, [eax + 2]
mov dx, word [eax]
add eax, 2
cmp dx, di
jne 0x4360d6
sub eax, esi
sar eax, 1
push eax
push ecx
lea ecx, [esp + 0x44]
call fcn.00401bf0
mov dword [esp + 0x68], edi
push 0xffffffffffffffff
xor ecx, ecx
push edi
lea edx, [esp + 0x44]
mov word [esp + 0x28], cx
mov esi, 7
push edx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x28], 0xffffffff
mov dword [esp + 0x40], esi
mov dword [esp + 0x3c], edi
call fcn.00401780
mov byte [esp + 0x68], 2
cmp dword [esp + 0x50], 8
jb 0x43613a
mov eax, dword [esp + 0x3c]
push eax
call fcn.0049855c
add esp, 4
xor ecx, ecx
mov word [esp + 0x3c], cx
push 1
lea ecx, [esp + 0x20]
mov dword [esp + 0x54], esi
mov dword [esp + 0x50], edi
call fcn.00434900
test al, al
mov eax, dword [esp + 0x1c]
jne 0x436193
cmp eax, 0xffffffff
je 0x436175
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, 1
jne 0x436175
mov dword [esp + 0x1c], 0xffffffff
cmp dword [esp + 0x34], 8
jb 0x436189
mov edx, dword [esp + 0x20]
push edx
call fcn.0049855c
add esp, 4
mov eax, 3
jmp 0x436310
mov dword [esp + 0x18], 0xfeff
cmp eax, 0xffffffff
je 0x4361e6
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
lea ecx, [esp + 0x14]
push ecx
push 2
lea edx, [esp + 0x24]
push edx
push eax
mov dword [esp + 0x24], edi
call esi
test eax, eax
je 0x4361c9
mov eax, dword [esp + 0x10]
and eax, edi
cmp eax, 0xffffffff
jne 0x43623e
mov eax, dword [esp + 0x1c]
cmp eax, 0xffffffff
je 0x4361e6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, 1
jne 0x4361e6
mov dword [esp + 0x1c], 0xffffffff
mov eax, dword [esp + 0x20]
mov esi, 8
cmp dword [esp + 0x34], esi
jae 0x4361f9
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esp + 0x1c]
cmp eax, 0xffffffff
je 0x43621d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, 1
jne 0x43621d
mov dword [esp + 0x1c], 0xffffffff
cmp dword [esp + 0x34], esi
jb 0x436189
mov eax, dword [esp + 0x20]
push eax
call fcn.0049855c
add esp, 4
mov eax, 3
jmp 0x436310
push str.__xml_version_1.0__encoding_utf_16__standalone_yes____r_n
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esp + 0x1c]
add eax, eax
mov dword [esp + 0x14], edi
cmp ecx, 0xffffffff
je 0x43627a
push edi
lea edx, [esp + 0x14]
push edx
push eax
push str.__xml_version_1.0__encoding_utf_16__standalone_yes____r_n
push ecx
mov dword [esp + 0x24], edi
call esi
test eax, eax
je 0x43627a
mov eax, dword [esp + 0x10]
and eax, edi
cmp eax, 0xffffffff
jne 0x436293
lea ecx, [esp + 0x1c]
call fcn.00402760
lea ecx, [esp + 0x1c]
call fcn.004022c0
mov eax, 3
jmp 0x436310
mov eax, dword [ebx + 0x818]
mov ecx, dword [eax + 0x30]
sub ecx, dword [eax + 0x2c]
add eax, 0x2c
sar ecx, 2
xor esi, esi
test ecx, ecx
je 0x4362da
jmp 0x4362b0
mov edx, dword [eax]
mov eax, dword [edx + esi*4]
push eax
push edi
lea ecx, [esp + 0x24]
push ecx
mov ecx, ebx
call fcn.00435dd0
mov eax, dword [ebx + 0x818]
mov edx, dword [eax + 0x30]
sub edx, dword [eax + 0x2c]
add eax, 0x2c
inc esi
sar edx, 2
cmp esi, edx
jb 0x4362b0
mov eax, dword [esp + 0x1c]
cmp eax, 0xffffffff
je 0x4362f7
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, 1
jne 0x4362f7
mov dword [esp + 0x1c], 0xffffffff
cmp dword [esp + 0x34], 8
jb 0x43630b
mov eax, dword [esp + 0x20]
push eax
call fcn.0049855c
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.00499155
mov esp, ebp
pop ebp
ret 4