Function at 0x4045b1
Capabilities:
Copy file
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff7d8
push ebx
push esi
mov ebx, dword [ebp + 8]
mov esi, 0x46b5c4
push 0x46b89c
lea eax, [ebp - 0x408]
push eax
call sub.cw3230mt.DLL__strcpy
add esp, 8
push 0x421679
lea edx, [ebp - 0x408]
push edx
call sub.cw3230mt.DLL__strcat
add esp, 8
push dword [ebp + 0x10]
lea ecx, [ebp - 0x408]
push ecx
call sub.cw3230mt.DLL__strcat
add esp, 8
test ebx, ebx
jne 0x40461a
lea eax, [ebp - 0x408]
push eax
call sub.KERNEL32.dll_LoadLibraryA
mov dword [ebx*4 + 0x421624], eax
jmp 0x4046a2
lea edx, [ebp - 0x408]
push edx
lea ecx, [ebp - 0x808]
push ecx
call sub.cw3230mt.DLL__strcpy
add esp, 8
push 0x2e
lea eax, [ebp - 0x808]
push eax
call sub.cw3230mt.DLL__strchr_qpci
add esp, 8
mov byte [eax], 0
push 0xa
lea edx, [ebp - 8]
push edx
push ebx
call sub.cw3230mt.DLL__itoa
add esp, 0xc
lea ecx, [ebp - 8]
push ecx
lea eax, [ebp - 0x808]
push eax
call sub.cw3230mt.DLL__strcat
add esp, 8
push str..dll
lea edx, [ebp - 0x808]
push edx
call sub.cw3230mt.DLL__strcat
add esp, 8
push 0
lea ecx, [ebp - 0x808]
push ecx
lea eax, [ebp - 0x408]
push eax
call sub.KERNEL32.dll_CopyFileA
lea edx, [ebp - 0x808]
push edx
call sub.KERNEL32.dll_LoadLibraryA
mov dword [ebx*4 + 0x421624], eax
cmp dword [ebx*4 + 0x421624], 0
jne 0x4046b6
mov eax, 1
jmp 0x4048cb
push 0x421683
push dword [ebx*4 + 0x421624]
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x404743
mov dword [ebp - 0x810], 0x41ae5e
mov dword [ebp - 0x80c], 0x404564
lea edx, [ebp - 0x828]
push edx
push 0xbc614e
push 0
call eax
test eax, eax
je 0x40474d
mov ecx, dword [ebp - 0x828]
mov dword [ebx*4 + 0x46b444], ecx
mov eax, dword [ebp - 0x824]
mov dword [ebx*4 + 0x46b458], eax
mov edx, dword [ebp - 0x820]
mov dword [ebx*4 + 0x46b6f0], edx
mov ecx, dword [ebp - 0x81c]
mov dword [ebx*4 + 0x46b704], ecx
mov eax, dword [ebp - 0x818]
mov dword [ebx*4 + 0x46b46c], eax
mov edx, dword [ebp - 0x814]
mov dword [ebx*4 + 0x46b480], edx
jmp 0x40474d
mov eax, 2
jmp 0x4048cb
cmp byte [ebp + 0xc], 0
je 0x40487b
imul edx, ebx, 0x15
mov ecx, dword [esi]
cmp word [ecx + edx*8], 0x8007
jne 0x4047bd
xor eax, eax
jmp 0x404778
imul edx, eax, 0xe
mov ecx, dword [0x46b5c0]
movzx edx, word [ecx + edx*8]
cmp ebx, edx
inc eax
mov ecx, dword [0x422430]
xor edx, edx
mov dl, byte [ecx + 0x1404]
cmp eax, edx
jl 0x404768
push 0
push ebx
mov eax, dword [ebx*4 + 0x46b46c]
call eax
add esp, 8
imul ecx, ebx, 0xa8
add ecx, dword [esi]
add ecx, 4
push ecx
push 1
push 0xffff
mov eax, dword [ebx*4 + 0x46b480]
call eax
add esp, 0xc
jmp 0x40487b
imul edx, ebx, 0x15
mov ecx, dword [esi]
cmp word [ecx + edx*8], 7
jne 0x40481f
xor eax, eax
jmp 0x4047dd
imul edx, eax, 0xe
mov ecx, dword [0x46b5c0]
movzx edx, word [ecx + edx*8]
cmp ebx, edx
inc eax
mov ecx, dword [0x422430]
xor edx, edx
mov dl, byte [ecx + 0x1404]
cmp eax, edx
jl 0x4047cd
push 0
push ebx
mov eax, dword [ebx*4 + 0x46b46c]
call eax
add esp, 8
imul ecx, ebx, 0xa8
add ecx, dword [esi]
add ecx, 4
push ecx
push 0
push 0xfffe
mov eax, dword [ebx*4 + 0x46b480]
call eax
add esp, 0xc
jmp 0x40487b
push 0
push ebx
mov edx, dword [ebx*4 + 0x46b46c]
call edx
add esp, 8
imul ecx, ebx, 0xa8
add ecx, dword [esi]
add ecx, 4
push ecx
imul eax, ebx, 0x15
mov edx, dword [esi]
movzx ecx, word [edx + eax*8]
and ecx, 0x8000
cmp ecx, 0x8000
sete al
and eax, 1
push eax
imul edx, ebx, 0x15
mov ecx, dword [esi]
movzx eax, word [ecx + edx*8 + 2]
imul edx, eax, 0xe
mov ecx, dword [0x46b5c0]
mov ax, word [ecx + edx*8 + 2]
push eax
mov edx, dword [ebx*4 + 0x46b480]
call edx
add esp, 0xc
mov ecx, ebx
shl ecx, 2
add ecx, 0x46b494
push ecx
push 2
push 0
push dword [ebx*4 + 0x46b458]
push 0
push 0
call sub.KERNEL32.dll_CreateThread
mov dword [ebx*4 + 0x421638], eax
cmp dword [ebx*4 + 0x421638], 0
jne 0x4048c9
cmp dword [ebx*4 + 0x421624], 0
je 0x4048c2
push dword [ebx*4 + 0x421624]
call sub.KERNEL32.dll_FreeLibrary
mov eax, 3
jmp 0x4048cb
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret