Function at 0x401b50
Capabilities:
Copy file
Create thread
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x477035
mov eax, dword fs:[0]
push eax
sub esp, 0x4a8
mov eax, dword [0x4b34c4]
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
xor ebx, ebx
push ebx
mov edi, 0xf
push 0x485602
lea ecx, [ebp - 0x4a0]
mov dword [ebp - 0x4b4], 0x4bc400
mov dword [ebp - 0x48c], edi
mov dword [ebp - 0x490], ebx
mov byte [ebp - 0x4a0], bl
call fcn.004059e0
cmp dword [ebp - 0x48c], 0x10
mov dword [0x4bc400], 0x4905f4
jb 0x401bd4
mov eax, dword [ebp - 0x4a0]
push eax
call fcn.00421a4e
add esp, 4
mov dword [ebp - 0x48c], edi
mov dword [ebp - 0x490], ebx
mov byte [ebp - 0x4a0], bl
mov dword [ebp - 4], ebx
push 8
mov dword [0x4bc400], 0x490608
mov dword [0x4bc404], ebx
call fcn.00421f69
add esp, 4
cmp eax, ebx
je 0x401f04
mov dword [0x4bc404], eax
mov dword [eax + 4], ebx
xor ecx, ecx
mov dword [eax], ecx
mov ecx, dword [0x4bc404]
mov dword [ecx], 0x4bc404
mov dword [0x4bc408], ebx
mov dword [0x4bc40c], ebx
mov dword [0x4bc410], ebx
mov dword [0x4bc414], ebx
mov byte [ebp - 4], 1
push 0x4bc434
mov dword [0x4bc420], 6
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventA]
push ebx
push ebx
push 1
push ebx
call esi
push ebx
push ebx
push ebx
push ebx
mov dword [0x4bc42c], eax
call esi
push 0x3ff
lea edx, [ebp - 0x40f]
push ebx
push edx
mov dword [0x4bc428], eax
mov byte [ebp - 0x410], bl
call fcn.00427230
add esp, 0xc
push 0x400
lea eax, [ebp - 0x410]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x410]
mov dword [ebp - 0x434], edi
mov dword [ebp - 0x438], ebx
mov byte [ebp - 0x448], bl
lea esi, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x401cc0
sub eax, esi
push eax
lea ecx, [ebp - 0x410]
push ecx
lea ecx, [ebp - 0x448]
call fcn.004059e0
push 0x4904b8
mov ebx, 1
lea eax, [ebp - 0x448]
mov byte [ebp - 4], 2
call fcn.00404760
cmp eax, 0xffffffff
je 0x401d3b
push eax
xor ecx, ecx
lea esi, [ebp - 0x464]
lea edx, [ebp - 0x448]
call fcn.00403260
mov edi, eax
lea esi, [ebp - 0x448]
mov byte [ebp - 4], 3
call fcn.004044e0
mov byte [ebp - 4], 2
cmp dword [ebp - 0x450], 0x10
jb 0x401d3b
mov edx, dword [ebp - 0x464]
push edx
call fcn.00421a4e
add esp, 4
push str..log
lea eax, [ebp - 0x448]
push eax
lea ecx, [ebp - 0x42c]
push ecx
call fcn.00407080
add esp, 0xc
mov byte [ebp - 4], 4
cmp dword [ebp - 0x418], 0x10
mov eax, dword [ebp - 0x42c]
jae 0x401d6f
lea eax, [ebp - 0x42c]
xor edi, edi
push edi
push edi
push 3
push edi
push edi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
xor ebx, ebx
cmp esi, edi
je 0x401d98
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 0x4904c4
cmp ebx, 0x3d0900
jbe 0x401e44
push str._bac
lea edx, [ebp - 0x448]
push edx
lea eax, [ebp - 0x480]
push eax
call fcn.00407080
push eax
mov eax, str..log
lea ecx, [ebp - 0x464]
mov byte [ebp - 4], 5
call fcn.00407160
mov ebx, 0x10
add esp, 0x10
cmp dword [ebp - 0x46c], ebx
jb 0x401df5
mov ecx, dword [ebp - 0x480]
push ecx
call fcn.00421a4e
add esp, 4
mov ecx, dword [ebp - 0x464]
cmp dword [ebp - 0x450], ebx
jae 0x401e09
lea ecx, [ebp - 0x464]
mov eax, dword [ebp - 0x42c]
cmp dword [ebp - 0x418], ebx
jae 0x401e1d
lea eax, [ebp - 0x42c]
push edi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov esi, 0x4904d0
cmp dword [ebp - 0x450], ebx
jb 0x401e49
mov edx, dword [ebp - 0x464]
push edx
call fcn.00421a4e
add esp, 4
jmp 0x401e49
mov ebx, 0x10
mov eax, dword [ebp - 0x42c]
cmp dword [ebp - 0x418], ebx
jae 0x401e5d
lea eax, [ebp - 0x42c]
push 0x20
push esi
push eax
call fcn.0042118c
add esp, 0xc
mov dword [0x4bc41c], eax
cmp eax, edi
je 0x401e9e
push edi
push 4
push edi
push eax
call fcn.00421923
add esp, 0x10
lea edx, [ebp - 0x4b0]
push edx
push edi
push 0x4bc400
push 0x4031d0
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x4bc430], eax
cmp dword [ebp - 0x418], ebx
jb 0x401eb5
mov eax, dword [ebp - 0x42c]
push eax
call fcn.00421a4e
add esp, 4
mov byte [ebp - 0x42c], 0
mov dword [ebp - 0x41c], edi
mov dword [ebp - 0x418], 0xf
cmp dword [ebp - 0x434], ebx
jb 0x401ee3
mov ecx, dword [ebp - 0x448]
push ecx
call fcn.00421a4e
add esp, 4
mov eax, 0x4bc400
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.0042097b
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x484]
push edx
lea ecx, [ebp - 0x4ac]
mov dword [ebp - 0x484], ebx
call fcn.00420c02
push 0x497c18
lea eax, [ebp - 0x4ac]
push eax
mov dword [ebp - method.std::bad_alloc.virtual_0], vtable.std::bad_alloc.0
call fcn.00428dcf
int3