Function at 0x4364f0
Capabilities:
Check if file exists
Delete file
Get file attributes
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x45b367
mov eax, dword fs:[0]
push eax
sub esp, 0x4c0
mov eax, dword [0x46e3d0]
xor eax, esp
mov dword [esp + 0x4b8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x46e3d0]
xor eax, esp
push eax
lea eax, [esp + 0x4d4]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x4e4]
lea esi, [ebp + 0x74]
mov ebx, 8
cmp dword [esi + 0x18], ebx
jb 0x436544
mov eax, dword [esi + 4]
jmp 0x436547
lea eax, [esi + 4]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call edi
test eax, eax
je 0x436568
cmp dword [esi + 0x18], ebx
jb 0x43655e
mov eax, dword [esi + 4]
jmp 0x436561
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esi + 0x18], ebx
jb 0x436572
mov eax, dword [esi + 4]
jmp 0x436575
lea eax, [esi + 4]
push eax
call edi
test eax, eax
jne 0x436589
call fcn.00423e80
push 1
push ebp
call fcn.00437df0
lea eax, [esp + 0x54]
push eax
call fcn.0042dab0
xor ebx, ebx
mov edi, 8
mov dword [esp + 0x4dc], ebx
cmp dword [esi + 0x18], edi
jb 0x4365ab
mov eax, dword [esi + 4]
jmp 0x4365ae
lea eax, [esi + 4]
lea esi, [esp + 0x54]
call fcn.0042db60
test al, al
jne 0x43671a
push 0x464f0c
push 0x400
lea ecx, [esp + 0xd4]
push 0x200
push ecx
call fcn.0043ef21
add esp, 0x10
lea ecx, [esp + 0x38]
call fcn.0042a750
mov byte [esp + 0x4dc], 1
mov ebp, 7
lea eax, [esp + 0xcc]
mov dword [esp + 0x30], ebp
mov dword [esp + 0x2c], ebx
mov word [esp + 0x1c], bx
lea edx, [eax + 2]
jmp 0x436610
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x436610
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0xd0]
push edx
lea esi, [esp + 0x20]
call fcn.00406f20
mov eax, esi
push ebx
push eax
or eax, 0xffffffff
lea esi, [esp + 0x40]
mov byte [esp + 0x4e4], 2
call fcn.00406d90
cmp dword [esp + 0x30], edi
jb 0x43665c
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.0043ef40
add esp, 4
cmp dword [esp + 0x50], edi
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x30], ebp
mov dword [esp + 0x2c], ebx
mov word [esp + 0x1c], bx
jae 0x436677
lea edx, [esp + 0x3c]
mov edi, dword [0x471b30]
cmp edi, ebx
je 0x4366b0
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x436686
sub eax, esi
sar eax, 1
push edi
add eax, eax
push eax
push 1
push edx
call fcn.0043fe21
mov ecx, dword [0x471b30]
push ecx
call fcn.004402ef
add esp, 0x14
cmp dword [esp + 0x50], 8
jb 0x4366c4
mov edx, dword [esp + 0x3c]
push edx
call fcn.0043ef40
add esp, 4
mov dword [esp + 0x4dc], 0xffffffff
cmp dword [esp + 0xb8], 0x10
mov dword [esp + 0x54], vtable.TiXmlDocument.0
jb 0x4366f1
mov eax, dword [esp + 0xa4]
push eax
call fcn.0043ef40
add esp, 4
lea ecx, [esp + 0x54]
mov dword [esp + 0xb8], 0xf
mov dword [esp + 0xb4], ebx
mov byte [esp + 0xa4], bl
call fcn.0042cc60
xor eax, eax
jmp 0x4368f4
cmp dword [ebp + 0x50], ebx
lea edi, [ebp + 0x3c]
je 0x436740
cmp dword [edi + 0x18], 8
jb 0x43672d
mov eax, dword [edi + 4]
jmp 0x436730
lea eax, [edi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push edi
call fcn.0041bcd0
add esp, 4
mov esi, dword [esp + 0x6c]
cmp esi, ebx
je 0x436760
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
mov ecx, esi
call eax
test eax, eax
jne 0x43691e
mov esi, dword [esi + 0x40]
cmp esi, ebx
jne 0x436748
xor eax, eax
lea ecx, [esp + 0x34]
push ecx
push eax
push edi
lea edx, [ebp + 0x20]
push edx
mov ecx, ebp
mov dword [esp + 0x44], 0x1f4
call fcn.00436930
mov ebp, eax
cmp ebp, ebx
je 0x4366c4
push ebp
push 0x464f34
push 0x400
lea ecx, [esp + 0xd8]
push 0x200
push ecx
call fcn.0043ef21
add esp, 0x14
lea ecx, [esp + 0x38]
call fcn.0042a750
mov byte [esp + 0x4dc], 3
mov edi, 7
lea eax, [esp + 0xcc]
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], ebx
mov word [esp + 0x1c], bx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4367d3
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0xd0]
push edx
lea esi, [esp + 0x20]
call fcn.00406f20
mov eax, esi
push ebx
push eax
or eax, 0xffffffff
lea esi, [esp + 0x40]
mov byte [esp + 0x4e4], 4
call fcn.00406d90
mov esi, 8
cmp dword [esp + 0x30], esi
jb 0x436824
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.0043ef40
add esp, 4
cmp dword [esp + 0x50], esi
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], ebx
mov word [esp + 0x1c], bx
jae 0x43683f
lea edx, [esp + 0x3c]
mov edi, dword [0x471b30]
cmp edi, ebx
je 0x43687f
mov eax, edx
lea esi, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x436850
sub eax, esi
sar eax, 1
push edi
add eax, eax
push eax
push 1
push edx
call fcn.0043fe21
mov ecx, dword [0x471b30]
push ecx
call fcn.004402ef
add esp, 0x14
mov esi, 8
cmp dword [esp + 0x50], esi
jb 0x436892
mov edx, dword [esp + 0x3c]
push edx
call fcn.0043ef40
add esp, 4
mov dword [esp + 0x4dc], 0xffffffff
cmp dword [esp + 0xb8], 0x10
mov dword [esp + 0x50], 7
mov dword [esp + 0x4c], ebx
mov word [esp + 0x3c], bx
mov dword [esp + 0x54], vtable.TiXmlDocument.0
jb 0x4368d0
mov eax, dword [esp + 0xa4]
push eax
call fcn.0043ef40
add esp, 4
lea ecx, [esp + 0x54]
mov dword [esp + 0xb8], 0xf
mov dword [esp + 0xb4], ebx
mov byte [esp + 0xa4], bl
call fcn.0042cc60
mov eax, ebp
mov ecx, dword [esp + 0x4d4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4b8]
xor ecx, esp
call fcn.0043ef12
add esp, 0x4cc
ret 4
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
mov ecx, esi
call eax
jmp 0x436762