Function at 0x413520
Capabilities:
Check if file exists
Copy file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43abbf
mov eax, dword fs:[0]
push eax
sub esp, 0x500
mov eax, dword [0x44bb64]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push str.SendRPT
lea ecx, [ebp - 0x4e8]
call fcn.00405620
mov ecx, dword [esi + 0x14]
mov ecx, dword [ecx + 0x118]
lea eax, [ebp - 0x4e8]
xor edi, edi
push eax
mov dword [ebp - 4], edi
call fcn.00405350
mov bl, al
mov eax, dword [ebp - 0x4e8]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4135a5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x413615
push str.SendRPT
lea ecx, [ebp - 0x4e8]
call fcn.00405620
mov edx, dword [esi + 0x14]
lea ecx, [ebp - 0x4e8]
push ecx
mov ecx, dword [edx + 0x118]
mov dword [ebp - 4], 1
call fcn.00405460
mov eax, dword [eax]
push edi
push edi
push eax
call fcn.0042467c
mov ebx, eax
mov eax, dword [ebp - 0x4e8]
add eax, 0xfffffff0
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41360d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp ebx, edi
je 0x413964
mov eax, dword [esi + 0x10]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x413964
push 0x400
lea ecx, [ebp - 0x410]
push edi
push ecx
call fcn.00424440
add esp, 0xc
lea edx, [ebp - 0x410]
push edx
push 0x1ff
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x410]
push eax
lea ecx, [ebp - 0x4ec]
call fcn.00405620
lea ecx, [ebp - 0x4f0]
push ecx
mov dword [ebp - 4], 2
call fcn.0041da30
mov edx, dword [esi + 0x14]
push eax
add edx, 0x88
push edx
lea eax, [ebp - 0x4fc]
push eax
mov byte [ebp - 4], 3
call fcn.00406c70
push str..RPT
push eax
lea ecx, [ebp - 0x4e8]
mov bl, 4
push ecx
mov byte [ebp - 4], bl
call fcn.00410640
add esp, 0x1c
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [ebp - 0x4ec]
mov byte [ebp - 4], 5
call fcn.00401470
mov eax, dword [ebp - 0x4e8]
add eax, 0xfffffff0
mov byte [ebp - 4], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4136e3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x4fc]
add eax, 0xfffffff0
mov byte [ebp - 4], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413709
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x4f0]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41372f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x4ec]
push ecx
lea ecx, [ebp - 0x4f4]
call fcn.00405620
mov edx, dword [ebp - 0x4f4]
mov eax, dword [esi + 0x10]
push edi
push edx
push eax
mov byte [ebp - 4], 6
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea eax, [ebp - 0x4f0]
push edi
push eax
call fcn.0041d3c0
push str.aliupload.dll
push eax
lea ecx, [ebp - 0x4f8]
push ecx
mov byte [ebp - 4], 7
call fcn.00410640
add esp, 0x14
mov eax, dword [ebp - 0x4f0]
add eax, 0xfffffff0
mov byte [ebp - 4], 9
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4137a3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x4f8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
cmp ebx, edi
jne 0x4137db
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [ebp - 0x4f8]
add eax, 0xfffffff0
mov byte [ebp - 4], 6
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x413909
push str.PostFile
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x4f0], eax
cmp eax, edi
jne 0x4137fd
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x4138ef
mov dword [ebp - 0x50c], edi
mov dword [ebp - 0x508], edi
mov dword [ebp - 0x504], edi
mov ecx, dword [ebp - 0x4ec]
push ecx
mov bl, 0xa
lea ecx, [ebp - 0x42c]
mov byte [ebp - 4], bl
call fcn.0040bd40
lea edx, [ebp - 0x42c]
push edx
lea ecx, [ebp - 0x50c]
mov byte [ebp - 4], 0xb
call fcn.00413120
lea ecx, [ebp - 0x42c]
mov byte [ebp - 4], bl
call fcn.00409f60
mov eax, dword [esi + 0x14]
mov eax, dword [eax + 0x28]
sub eax, 0x10
push eax
call fcn.00401e10
lea edi, [eax + 0x10]
mov dword [ebp - 0x4fc], edi
sub esp, 0xc
lea eax, [ebp - 0x50c]
mov ecx, esp
mov dword [ebp - 0x4e8], esp
push eax
mov byte [ebp - 4], 0xc
call fcn.004128f0
mov esi, dword [esi + 0x14]
mov eax, dword [esi + 0x80]
mov esi, dword [esi + 0x60]
push str.123456
push str.test
push str.dumpex
push edi
push eax
push esi
lea ecx, [ebp - 0x4e4]
call fcn.00412f50
lea ecx, [ebp - 0x4e4]
push ecx
mov byte [ebp - 4], 0xd
call dword [ebp - 0x4f0]
add esp, 4
lea ecx, [ebp - 0x4e4]
call fcn.00412a80
lea eax, [edi - 0x10]
mov byte [ebp - 4], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4138e4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x50c]
call fcn.004129d0
mov eax, dword [ebp - 0x4f8]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [ebp - 4], 6
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413915
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x4f4]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41393b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x4ec]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413964
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004234ee
mov esp, ebp
pop ebp
ret