Function at 0x4da450
Capabilities:
Copy file
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fa373
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x572734]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x60]
call fcn.00431bf0
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x10]
push ecx
call fcn.00432c20
mov byte [ebp - 4], 2
push 0
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x4c], esp
call fcn.00405b10
mov dword [ebp - 0x30], eax
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x50], edx
mov byte [ebp - 4], 3
push 0
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc120u.dll_Ordinal_1658]
push eax
mov ecx, dword [ebp + 0x10]
call fcn.004157f0
push eax
mov byte [ebp - 4], 2
call fcn.00431e30
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x4da6c6
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc120u.dll_Ordinal_296]
mov byte [ebp - 4], 4
push 0
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x20]
call fcn.004dc0e0
mov ecx, dword [eax]
mov dword [ebp - 0x20], ecx
lea edx, [ebp - 0x14]
push edx
mov ecx, dword [ebp - 0x20]
add ecx, 0x2c
call fcn.004157f0
push eax
call fcn.00432da0
movzx eax, al
test eax, eax
je 0x4da59e
lea ecx, [ebp - 0x18]
call dword [sym.imp.mfc120u.dll_Ordinal_296]
mov byte [ebp - 4], 5
mov ecx, dword [ebp + 0x14]
push ecx
push str.ServerDump2__d.txt
lea edx, [ebp - 0x18]
push edx
call dword [sym.imp.mfc120u.dll_Ordinal_4772]
add esp, 0xc
lea ecx, [ebp - 0x18]
call dword [sym.imp.mfc120u.dll_Ordinal_1658]
push eax
push 0x104
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc120u.dll_Ordinal_5019]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc120u.dll_Ordinal_12430]
push 0
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc120u.dll_Ordinal_1658]
push eax
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc120u.dll_Ordinal_1658]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x18]
call dword [sym.imp.mfc120u.dll_Ordinal_1042]
mov ecx, dword [ebp - 0x20]
add ecx, 0x2c
call fcn.004157f0
push eax
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc120u.dll_Ordinal_1658]
push eax
call fcn.004d4860
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc120u.dll_Ordinal_1658]
push eax
mov eax, dword [ebp + 0x18]
push eax
lea ecx, [ebp - 0x78]
push ecx
call fcn.00463130
mov dword [ebp - 0x38], eax
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x3c], edx
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x60]
call fcn.00447540
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x78]
call fcn.00405d70
lea ecx, [ebp - 0x60]
call fcn.00431cc0
cmp eax, 4
jne 0x4da67b
lea ecx, [ebp - 0x1c]
call dword [sym.imp.mfc120u.dll_Ordinal_296]
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc120u.dll_Ordinal_1658]
push eax
push str.Failed_to_load_XML_file:__s
lea ecx, [ebp - 0x1c]
push ecx
call dword [sym.imp.mfc120u.dll_Ordinal_4772]
add esp, 0xc
push 0
lea ecx, [ebp - 0x1c]
call dword [sym.imp.mfc120u.dll_Ordinal_1658]
push eax
call fcn.00435f80
add esp, 8
mov dword [ebp - 0x40], 0
lea edx, [ebp - 0x40]
push edx
lea ecx, [ebp - 0x68]
call fcn.00431bf0
mov byte [ebp - 4], 8
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x60]
call fcn.00447540
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x68]
call fcn.00405d70
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x1c]
call dword [sym.imp.mfc120u.dll_Ordinal_1042]
mov ecx, dword [ebp + 0xc]
push ecx
push ecx
mov ecx, esp
mov dword [ebp - 0x54], esp
mov edx, dword [ebp + 0x18]
push edx
call fcn.004315c0
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x58], eax
mov byte [ebp - 4], 9
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x24]
call fcn.004dba90
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc120u.dll_Ordinal_1658]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc120u.dll_Ordinal_1042]
jmp 0x4da6f5
mov dword [ebp - 0x48], 2
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x70]
call fcn.00431bf0
mov byte [ebp - 4], 0xa
lea edx, [ebp - 0x70]
push edx
lea ecx, [ebp - 0x60]
call fcn.00447540
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x70]
call fcn.00405d70
lea eax, [ebp - 0x60]
push eax
mov ecx, dword [ebp + 8]
call fcn.00464110
mov ecx, dword [ebp - 0x28]
or ecx, 1
mov dword [ebp - 0x28], ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc120u.dll_Ordinal_1042]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x60]
call fcn.00405d70
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0x14