Function at 0x4d8c10
Capabilities:
Copy file
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f88e5
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x56f734]
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.00430510
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x10]
push ecx
call fcn.00492520
mov byte [ebp - 4], 2
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x4c], esp
call fcn.004c0a60
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.004147c0
push eax
mov byte [ebp - 4], 2
call fcn.00491750
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x4d8e84
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.004da830
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.004147c0
push eax
call fcn.004926a0
movzx eax, al
test eax, eax
je 0x4d8d5c
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.004147c0
push eax
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc120u.dll_Ordinal_1658]
push eax
call fcn.004d2fa0
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.0045e3f0
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.00442950
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x78]
call fcn.00471d60
lea ecx, [ebp - 0x60]
call fcn.004305e0
cmp eax, 4
jne 0x4d8e39
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.004313d0
add esp, 8
mov dword [ebp - 0x40], 0
lea edx, [ebp - 0x40]
push edx
lea ecx, [ebp - 0x68]
call fcn.00430510
mov byte [ebp - 4], 8
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x60]
call fcn.00442950
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x68]
call fcn.00471d60
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.0042fe40
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.004da250
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 0x4d8eb3
mov dword [ebp - 0x48], 2
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x70]
call fcn.00430510
mov byte [ebp - 4], 0xa
lea edx, [ebp - 0x70]
push edx
lea ecx, [ebp - 0x60]
call fcn.00442950
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x70]
call fcn.00471d60
lea eax, [ebp - 0x60]
push eax
mov ecx, dword [ebp + 8]
call fcn.0045f400
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.00471d60
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0x14