Function at 0x401be0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49dce8
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x4bfdd0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x78]
cmp eax, ebx
mov dword [ebp - 0x38], ebx
je 0x401f18
cmp dword [eax + 0x2a4], ebx
je 0x401f18
lea eax, [ebp - 0x1c]
push eax
mov esi, str.select__from_svr_cfg
call fcn.00404180
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1c]
mov esi, 1
cmp dword [eax - 4], esi
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x20], ebx
jle 0x401c67
mov ecx, dword [eax - 0xc]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00404a10
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x2c]
push edx
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x34]
push edx
mov edx, dword [edi + 0x78]
lea ecx, [ebp - 0x30]
push ecx
push eax
mov eax, dword [edx + 0x2a4]
push eax
call fcn.00451570
add esp, 0x18
cmp eax, ebx
jne 0x401ed1
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x38], esi
push ecx
mov esi, 0x4a6221
call fcn.00404180
lea edx, [ebp - 0x14]
push edx
mov byte [ebp - 4], 2
call fcn.00404180
mov byte [ebp - 4], 3
mov ebx, dword [ebp - 0x20]
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x2c]
cmp eax, dword [ebp - 0x34]
jge 0x401e40
xor eax, eax
mov dword [ebp - 0x28], eax
cmp eax, dword [ebp - 0x20]
jge 0x401e34
mov esi, dword [ebp - 0x30]
mov ecx, dword [esi + eax*4]
push ecx
push 0x4a6224
lea edi, [ebp - 0x18]
call fcn.004043e0
add esp, 8
cmp dword [esi + ebx*4], 0
mov eax, 0x4a6221
je 0x401d00
mov eax, dword [esi + ebx*4]
push eax
push 0x4a6224
lea edi, [ebp - 0x14]
call fcn.004043e0
add esp, 8
lea ebx, [ebp - 0x18]
call fcn.00404290
mov edi, eax
call fcn.00404f70
mov eax, dword [eax]
push str.CfgID
push eax
call fcn.00483f37
add esp, 8
test eax, eax
jne 0x401d4b
mov edx, dword [ebp - 0x14]
push edx
call fcn.00483c96
mov esi, dword [ebp + 8]
add esp, 4
mov dword [esi + 0x84], eax
jmp 0x401d4e
mov esi, dword [ebp + 8]
lea ebx, [ebp - 0x18]
call fcn.00404290
mov edi, eax
call fcn.00404f70
mov eax, dword [eax]
push str.LisPort
push eax
call fcn.00483f37
add esp, 8
test eax, eax
jne 0x401d80
mov eax, dword [ebp - 0x14]
push eax
lea ecx, [esi + 0x240]
call fcn.0046df9b
lea ebx, [ebp - 0x18]
call fcn.00404290
mov edi, eax
call fcn.00404f70
mov eax, dword [eax]
push str.AuthType
push eax
call fcn.00483f37
add esp, 8
test eax, eax
jne 0x401dec
lea ebx, [ebp - 0x14]
call fcn.00404290
mov edi, eax
call fcn.00404f70
mov eax, dword [eax]
push 0x4a5584
push eax
call fcn.00483f37
add esp, 8
test eax, eax
push 0
jne 0x401dd8
mov ecx, dword [esi + 0x164]
push 1
push 0x14e
push ecx
jmp 0x401de6
mov edx, dword [esi + 0x164]
push 0
push 0x14e
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
lea ebx, [ebp - 0x18]
call fcn.00404290
mov edi, eax
call fcn.00404f70
mov eax, dword [eax]
push str.LicPath
push eax
call fcn.00483f37
add esp, 8
test eax, eax
jne 0x401e1e
mov eax, dword [ebp - 0x14]
push eax
lea ecx, [esi + 0x294]
call fcn.0046df9b
mov eax, 1
add dword [ebp - 0x24], eax
add dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x28]
jmp 0x401cd2
add dword [ebp - 0x2c], 1
mov edi, dword [ebp + 8]
jmp 0x401cc1
mov ecx, dword [edi + 0x78]
push str..BAK
add ecx, 0x28
push ecx
lea edx, [ebp + 8]
push edx
call fcn.00405010
mov eax, dword [eax]
mov ecx, dword [edi + 0x78]
mov ecx, dword [ecx + 0x28]
add esp, 0xc
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x401e89
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401eac
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401ee9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x401ee9
cmp eax, 0x1a
jne 0x401ee9
push 0x10
push 0x4a5790
push 0x4a579c
mov ecx, edi
call fcn.00468b72
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.00451710
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
add esp, 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x401f18
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4