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

Disassembly:
push 0xffffffffffffffff
push 0x45dc37
mov eax, dword fs:[0]
push eax
sub esp, 0x4c0
mov eax, dword [0x4713c0]
xor eax, esp
mov dword [esp + 0x4b8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4713c0]
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 0x437904
mov eax, dword [esi + 4]
jmp 0x437907
lea eax, [esi + 4]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call edi
test eax, eax
je 0x437928
cmp dword [esi + 0x18], ebx
jb 0x43791e
mov eax, dword [esi + 4]
jmp 0x437921
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esi + 0x18], ebx
jb 0x437932
mov eax, dword [esi + 4]
jmp 0x437935
lea eax, [esi + 4]
push eax
call edi
test eax, eax
jne 0x437949
call fcn.00425920
push 1
push ebp
call fcn.004391c0
lea eax, [esp + 0x54]
push eax
call fcn.0042eea0
xor ebx, ebx
mov edi, 8
mov dword [esp + 0x4dc], ebx
cmp dword [esi + 0x18], edi
jb 0x43796b
mov esi, dword [esi + 4]
jmp 0x43796e
add esi, 4
mov eax, esi
lea esi, [esp + 0x54]
call fcn.0042ef50
test al, al
jne 0x437ada
push 0x4670e4
lea ecx, [esp + 0xd0]
push 0x200
push ecx
call fcn.004414db
add esp, 0xc
lea ecx, [esp + 0x38]
mov word [esp + 0x4ca], bx
call fcn.0042bd40
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]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4379d0
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0xd0]
push edx
lea esi, [esp + 0x20]
call fcn.00406f80
mov eax, esi
push ebx
push eax
or eax, 0xffffffff
lea esi, [esp + 0x40]
mov byte [esp + 0x4e4], 2
call fcn.00406df0
cmp dword [esp + 0x30], edi
jb 0x437a1c
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.004415cb
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 0x437a37
lea edx, [esp + 0x3c]
mov edi, dword [0x474bb0]
cmp edi, ebx
je 0x437a70
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x437a46
sub eax, esi
sar eax, 1
push edi
add eax, eax
push eax
push 1
push edx
call fcn.004422ed
mov ecx, dword [0x474bb0]
push ecx
call fcn.004428a9
add esp, 0x14
cmp dword [esp + 0x50], 8
jb 0x437a84
mov edx, dword [esp + 0x3c]
push edx
call fcn.004415cb
add esp, 4
mov dword [esp + 0x4dc], 0xffffffff
cmp dword [esp + 0xb8], 0x10
mov dword [esp + 0x54], vtable.TiXmlDocument.0
jb 0x437ab1
mov eax, dword [esp + 0xa4]
push eax
call fcn.004415cb
add esp, 4
lea ecx, [esp + 0x54]
mov dword [esp + 0xb8], 0xf
mov dword [esp + 0xb4], ebx
mov byte [esp + 0xa4], bl
call fcn.0042e050
xor eax, eax
jmp 0x437cb5
cmp dword [ebp + 0x50], ebx
lea edi, [ebp + 0x3c]
je 0x437b00
cmp dword [edi + 0x18], 8
jb 0x437aed
mov eax, dword [edi + 4]
jmp 0x437af0
lea eax, [edi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push edi
call fcn.0041de40
add esp, 4
mov esi, dword [esp + 0x6c]
cmp esi, ebx
je 0x437b20
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
mov ecx, esi
call eax
test eax, eax
jne 0x437cdf
mov esi, dword [esi + 0x40]
cmp esi, ebx
jne 0x437b08
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.00437cf0
mov ebp, eax
cmp ebp, ebx
je 0x437a84
push ebp
push 0x46710c
lea ecx, [esp + 0xd4]
push 0x200
push ecx
call fcn.004414db
add esp, 0x10
lea ecx, [esp + 0x38]
mov word [esp + 0x4ca], bx
call fcn.0042bd40
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 0x437b96
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0xd0]
push edx
lea esi, [esp + 0x20]
call fcn.00406f80
mov eax, esi
push ebx
push eax
or eax, 0xffffffff
lea esi, [esp + 0x40]
mov byte [esp + 0x4e4], 4
call fcn.00406df0
mov esi, 8
cmp dword [esp + 0x30], esi
jb 0x437be7
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.004415cb
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 0x437c02
lea edx, [esp + 0x3c]
mov edi, dword [0x474bb0]
cmp edi, ebx
je 0x437c40
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x437c11
sub eax, esi
sar eax, 1
push edi
add eax, eax
push eax
push 1
push edx
call fcn.004422ed
mov ecx, dword [0x474bb0]
push ecx
call fcn.004428a9
add esp, 0x14
mov esi, 8
cmp dword [esp + 0x50], esi
jb 0x437c53
mov edx, dword [esp + 0x3c]
push edx
call fcn.004415cb
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 0x437c91
mov eax, dword [esp + 0xa4]
push eax
call fcn.004415cb
add esp, 4
lea ecx, [esp + 0x54]
mov dword [esp + 0xb8], 0xf
mov dword [esp + 0xb4], ebx
mov byte [esp + 0xa4], bl
call fcn.0042e050
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.004414cc
add esp, 0x4cc
ret 4
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
mov ecx, esi
call eax
jmp 0x437b22