Function at 0x402650
Capabilities:
Copy file
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4162aa
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x41f008]
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 dword [ebp - 0x9c], edx
mov dword [ebp - 0x80], ecx
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
movq qword [ebp - 0x1c], xmm0
xor edi, edi
xor esi, esi
mov dword [ebp - 0x1c], vtable.Sc_Convert.0
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], esi
xor eax, eax
mov dword [ebp - 0x28], 7
mov dword [ebp - 0x2c], esi
mov word [ebp - 0x3c], ax
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 1
call fcn.00402320
push 0x41c644
mov edx, eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x98]
call fcn.00404440
add esp, 4
mov ebx, eax
lea eax, [ebp - 0x3c]
cmp eax, ebx
je 0x402717
mov eax, dword [ebp - 0x28]
cmp eax, 8
jb 0x4026fa
inc eax
push eax
push dword [ebp - 0x3c]
call fcn.004018d0
xor eax, eax
mov dword [ebp - 0x28], 7
push ebx
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x2c], 0
mov word [ebp - 0x3c], ax
call fcn.004015b0
mov eax, dword [ebp - 0x84]
cmp eax, 8
jb 0x40272f
inc eax
push eax
push dword [ebp - 0x98]
call fcn.004018d0
xor eax, eax
mov byte [ebp - 4], 1
mov word [ebp - 0x98], ax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x84], 7
mov dword [ebp - 0x88], 0
cmp eax, 8
jb 0x402762
inc eax
push eax
push dword [ebp - 0x6c]
call fcn.004018d0
cmp dword [ebp - 0x28], 8
lea eax, [ebp - 0x3c]
cmovae eax, dword [ebp - 0x3c]
push eax
call fcn.00402260
add esp, 4
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov ax, word [ebp - 0x78]
cmp ax, 9
je 0x402794
cmp ax, 6
jne 0x4029cf
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x7c], 0
push eax
call dword [0x4202fc]
xor eax, eax
mov dword [ebp - 0x40], 7
mov dword [ebp - 0x44], 0
mov word [ebp - 0x54], ax
mov edx, str.windir
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x6c]
call fcn.004023d0
push str._system32_
mov edx, eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x98]
call fcn.00404440
add esp, 4
mov esi, eax
lea eax, [ebp - 0x54]
cmp eax, esi
je 0x40281b
mov eax, dword [ebp - 0x40]
cmp eax, 8
jb 0x4027fe
inc eax
push eax
push dword [ebp - 0x54]
call fcn.004018d0
xor eax, eax
mov dword [ebp - 0x40], 7
push esi
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x44], 0
mov word [ebp - 0x54], ax
call fcn.004015b0
mov eax, dword [ebp - 0x84]
cmp eax, 8
jb 0x402833
inc eax
push eax
push dword [ebp - 0x98]
call fcn.004018d0
xor eax, eax
mov byte [ebp - 4], 4
mov word [ebp - 0x98], ax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x84], 7
mov dword [ebp - 0x88], 0
cmp eax, 8
jb 0x402866
inc eax
push eax
push dword [ebp - 0x6c]
call fcn.004018d0
lea ecx, [ebp - 0x6c]
call fcn.00402320
mov esi, eax
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x54]
cmp dword [ebp - 0x40], 8
cmovae ecx, dword [ebp - 0x54]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00401120
cmp dword [esi + 0x14], 8
mov edi, eax
jb 0x402892
mov esi, dword [esi]
push esi
lea ecx, [ebp - 0x1c]
call fcn.00401120
push edi
push eax
call fcn.00408573
add esp, 8
mov byte [ebp - 4], 4
test eax, eax
mov eax, dword [ebp - 0x58]
sete bl
cmp eax, 8
jb 0x4028c0
inc eax
push eax
push dword [ebp - 0x6c]
call fcn.004018d0
test bl, bl
je 0x4029b3
mov edx, 0x41c6ac
lea ecx, [ebp - 0x6c]
call fcn.004023d0
push str._broscfg.dll
mov edx, eax
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x98]
call fcn.00404440
add esp, 4
mov edi, eax
mov esi, 0x4202e0
cmp edi, esi
je 0x402934
mov eax, dword [0x4202f4]
cmp eax, 8
jb 0x402910
inc eax
push eax
push dword [0x4202e0]
call fcn.004018d0
xor eax, eax
mov dword [0x4202f4], 7
push edi
mov ecx, esi
mov dword [0x4202f0], 0
mov word [0x4202e0], ax
call fcn.004015b0
mov eax, dword [ebp - 0x84]
cmp eax, 8
jb 0x40294c
inc eax
push eax
push dword [ebp - 0x98]
call fcn.004018d0
xor eax, eax
mov byte [ebp - 4], 4
mov word [ebp - 0x98], ax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x84], 7
mov dword [ebp - 0x88], 0
cmp eax, 8
jb 0x40297f
inc eax
push eax
push dword [ebp - 0x6c]
call fcn.004018d0
cmp dword [0x4202f4], 8
lea eax, [ebp - 0x3c]
push 0
cmovae esi, dword [0x4202e0]
cmp dword [ebp - 0x28], 8
push esi
cmovae eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push 0xffffffffffffffff
push 0
push 0x4202e0
lea ecx, [ebp - 0x3c]
call fcn.004019f0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x40]
cmp eax, 8
jb 0x4029c9
inc eax
push eax
push dword [ebp - 0x54]
call fcn.004018d0
mov edi, dword [ebp - 0x18]
mov esi, dword [ebp - 0x14]
cmp dword [ebp - 0x28], 8
lea eax, [ebp - 0x3c]
cmovae eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x402a37
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push dword [ebp - 0x9c]
push 0x218905b2
push dword [ebp - 0x80]
call eax
push str.True
push dword [ebp - 0x80]
call fcn.00408573
add esp, 8
test eax, eax
je 0x402a5c
push 0x41c6c0
push dword [ebp - 0x80]
call fcn.00408573
add esp, 8
test eax, eax
je 0x402a5c
push str.success.
call fcn.00402230
add esp, 4
jmp 0x402a5c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xa
push 0xa
lea ecx, [ebp - 0x24]
push ecx
push eax
call fcn.004080a4
lea eax, [ebp - 0x24]
push eax
push str.Dll_failed_to_load____S
call fcn.00402230
add esp, 0x18
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x28]
cmp eax, 8
jb 0x402a75
inc eax
push eax
push dword [ebp - 0x3c]
call fcn.004018d0
xor eax, eax
mov dword [ebp - 0x28], 7
mov dword [ebp - 0x2c], 0
mov word [ebp - 0x3c], ax
test edi, edi
je 0x402a98
push 1
push edi
call fcn.00405117
add esp, 8
test esi, esi
je 0x402aa7
push 2
push esi
call fcn.00405117
add esp, 8
mov al, 1
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.004050c9
mov esp, ebp
pop ebp
ret