Function at 0x40c7e0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x553da9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x624
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov dword [ebp - 0x10], esp
lea eax, [ebp - 0x120]
push 0x104
push eax
mov esi, ecx
push 0
mov dword [ebp - 4], 0
call edi
test eax, eax
jne 0x40c85c
lea ecx, [ebp - 0x228]
call fcn.0045eaa0
push 1
push str.Error_bi200001_r_n
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 1
call fcn.0045eb80
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 0
call fcn.0045eb70
jmp 0x40c988
lea ecx, [ebp - 0x530]
lea edx, [ebp - 0x630]
push ecx
lea eax, [ebp - 0x328]
push edx
lea ecx, [ebp - 0x1c]
push eax
lea edx, [ebp - 0x120]
push ecx
push edx
call fcn.0052776a
add esp, 0x14
lea eax, [ebp - 0x328]
lea ecx, [ebp - 0x1c]
lea edx, [ebp - 0x120]
push str.NPIDMan1.dll
push eax
push ecx
push 0x5a47ec
push edx
call fcn.00527718
mov eax, dword [0x5c2a74]
add esp, 0x14
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov byte [ebp - 4], 2
test eax, eax
je 0x40c8f4
mov eax, dword [ebp + 8]
test eax, eax
jl 0x40c97c
cmp eax, dword [esi + 0x58]
jge 0x40c97c
mov ecx, dword [esi + 0x54]
lea edx, [ecx + eax*4]
lea ecx, [ebp - 0x14]
push edx
call fcn.005422f7
mov eax, dword [ebp - 0x14]
xor ecx, ecx
mov ebx, 3
mov eax, dword [eax - 8]
test eax, eax
setg cl
mov eax, ecx
jmp case.default.0x40c905
mov edx, dword [ebp + 8]
mov ebx, 3
xor eax, eax
lea ecx, [edx - 1]
cmp ecx, ebx
ja case.default.0x40c905
jmp dword [ecx*4 + 0x40cad8]
lea eax, [ebp - 0x14]
mov ecx, esi
push eax
call fcn.0040bd10
jmp case.default.0x40c905
lea ecx, [ebp - 0x14]
push ecx
mov ecx, esi
call fcn.0040ba90
jmp case.default.0x40c905
lea edx, [ebp - 0x14]
mov ecx, esi
push edx
call fcn.0040ccd0
jmp case.default.0x40c905
lea eax, [ebp - 0x14]
mov ecx, esi
push eax
call fcn.0040caf0
test eax, eax
je 0x40c97c
lea ecx, [ebp - 0x14]
push str.NPIDMan1.dll
lea edx, [ebp - 0x18]
push ecx
push edx
call fcn.00542453
mov eax, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0
lea ecx, [ebp - 0x120]
push eax
push ecx
mov byte [ebp - 4], bl
call esi
test eax, eax
jne 0x40c99d
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
call fcn.005421be
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.005421be
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea edx, [ebp - 0x120]
push 0x104
push edx
push 0
call edi
test eax, eax
jne 0x40c9e2
lea ecx, [ebp - 0x228]
call fcn.0045eaa0
push 1
push str.Error_bi200001_r_n
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 4
call fcn.0045eb80
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], bl
call fcn.0045eb70
jmp 0x40c970
lea eax, [ebp - 0x630]
lea ecx, [ebp - 0x530]
push eax
lea edx, [ebp - 0x328]
push ecx
lea eax, [ebp + 8]
push edx
lea ecx, [ebp - 0x120]
push eax
push ecx
call fcn.0052776a
add esp, 0x14
lea edx, [ebp - 0x328]
lea eax, [ebp + 8]
lea ecx, [ebp - 0x120]
push str.NPIDMan2.dll
push edx
push eax
push 0x5a47ec
push ecx
call fcn.00527718
add esp, 0x14
lea edx, [ebp - 0x14]
lea eax, [ebp + 8]
push str.NPIDMan2.dll
push edx
push eax
call fcn.00542453
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 5
call fcn.005422f7
lea ecx, [ebp + 8]
mov byte [ebp - 4], bl
call fcn.005421be
mov ecx, dword [ebp - 0x18]
push 0
lea edx, [ebp - 0x120]
push ecx
push edx
call esi
test eax, eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
je 0x40c977
call fcn.005421be
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.005421be
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8