Function at 0x4e0790
Capabilities:
Copy file
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x645f7d
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x721970]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x6c]
call fcn.004358d0
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x10]
push ecx
call fcn.00436a10
mov byte [ebp - 4], 2
push 0
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x50], esp
call fcn.004c8690
mov dword [ebp - 0x30], eax
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x54], edx
mov byte [ebp - 4], 3
push 0
lea ecx, [ebp - 0x10]
call fcn.004a7500
push eax
mov ecx, dword [ebp + 0x10]
call fcn.00419160
push eax
mov byte [ebp - 4], 2
call fcn.00435af0
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x4e0a25
lea ecx, [ebp - 0x14]
call fcn.00406700
mov byte [ebp - 4], 4
push 0
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x20]
call fcn.004e2590
mov ecx, dword [eax]
mov dword [ebp - 0x24], ecx
lea edx, [ebp - 0x14]
push edx
mov ecx, dword [ebp - 0x24]
add ecx, 0x2c
call fcn.00419160
push eax
call fcn.00436b90
movzx eax, al
test eax, eax
je 0x4e08d4
lea ecx, [ebp - 0x18]
call fcn.00406700
mov byte [ebp - 4], 5
mov ecx, dword [ebp + 0x14]
push ecx
push str.ServerDump2__d.txt
lea edx, [ebp - 0x18]
push edx
call fcn.004076f0
add esp, 0xc
lea ecx, [ebp - 0x18]
call fcn.004a7500
push eax
push 0x104
lea ecx, [ebp - 0x14]
call fcn.00407830
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x14]
call fcn.00407e70
push 0
lea ecx, [ebp - 0x14]
call fcn.004a7500
push eax
lea ecx, [ebp - 0x10]
call fcn.004a7500
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x18]
call fcn.004068c0
mov ecx, dword [ebp - 0x24]
add ecx, 0x2c
call fcn.00419160
push eax
lea ecx, [ebp - 0x10]
call fcn.004a7500
push eax
call fcn.004dab40
lea ecx, [ebp - 0x10]
call fcn.004a7500
push eax
mov eax, dword [ebp + 0x18]
push eax
lea ecx, [ebp - 0x84]
push ecx
call fcn.00467e30
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 - 0x6c]
call fcn.0044bcd0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x84]
call fcn.0047bdd0
lea ecx, [ebp - 0x6c]
call fcn.004359a0
cmp eax, 4
jne 0x4e09b0
lea ecx, [ebp - 0x1c]
call fcn.00406700
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x10]
call fcn.004a7500
push eax
push str.Failed_to_load_XML_file:__s
lea ecx, [ebp - 0x1c]
push ecx
call fcn.004076f0
add esp, 0xc
push 0
lea ecx, [ebp - 0x1c]
call fcn.004a7500
push eax
call fcn.00439fb0
add esp, 8
mov dword [ebp - 0x40], 0
lea edx, [ebp - 0x40]
push edx
lea ecx, [ebp - 0x74]
call fcn.004358d0
mov byte [ebp - 4], 8
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0x6c]
call fcn.0044bcd0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x74]
call fcn.0047bdd0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x1c]
call fcn.004068c0
mov ecx, dword [ebp + 0xc]
push ecx
push ecx
mov ecx, esp
mov dword [ebp - 0x58], esp
mov edx, dword [ebp + 0x18]
push edx
call fcn.0044bca0
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x5c], eax
mov byte [ebp - 4], 9
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x20]
call fcn.004e1dc0
mov ecx, dword [ebp + 0xc]
push ecx
push ecx
mov ecx, esp
mov dword [ebp - 0x60], esp
mov edx, dword [ebp + 0x18]
push edx
call fcn.0044bca0
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x64], eax
mov byte [ebp - 4], 0xa
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x20]
call fcn.004e20c0
lea ecx, [ebp - 0x10]
call fcn.004a7500
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
call fcn.004068c0
jmp 0x4e0a54
mov dword [ebp - 0x4c], 2
lea ecx, [ebp - 0x4c]
push ecx
lea ecx, [ebp - 0x7c]
call fcn.004358d0
mov byte [ebp - 4], 0xb
lea edx, [ebp - 0x7c]
push edx
lea ecx, [ebp - 0x6c]
call fcn.0044bcd0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x7c]
call fcn.0047bdd0
lea eax, [ebp - 0x6c]
push eax
mov ecx, dword [ebp + 8]
call fcn.00468e50
mov ecx, dword [ebp - 0x28]
or ecx, 1
mov dword [ebp - 0x28], ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.004068c0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x6c]
call fcn.0047bdd0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0x14