Function at 0x4127b0
Capabilities:
Copy file

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
push edi
push 2
mov edi, ecx
mov eax, dword [edi + 0x90]
push 0xffffffffffffffff
push 0x100c
push eax
mov dword [esp + 0x30], edi
call dword [sym.imp.user32.dll_SendMessageA]
inc eax
jne 0x4127e4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
mov eax, dword [esp + 0x14]
mov ecx, dword [edi + 0x90]
push 2
lea esi, [eax - 1]
push esi
push 0x100c
push ecx
call dword [sym.imp.user32.dll_SendMessageA]
push 4
push esi
lea edx, [esp + 0x20]
inc eax
lea ebp, [edi + 0x74]
push edx
mov ecx, ebp
mov dword [esp + 0x20], eax
call fcn.00459697
mov eax, dword [eax]
push 0x475170
push eax
call fcn.00447da8
mov ebx, eax
mov eax, dword [esp + 0x20]
add esp, 8
neg ebx
sbb bl, bl
add eax, 0xfffffff0
inc bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412849
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test bl, bl
push 5
push esi
je 0x41291c
lea eax, [esp + 0x24]
push eax
mov ecx, ebp
call fcn.00459697
mov eax, dword [eax]
push eax
call fcn.00448264
mov esi, eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41288b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push esi
mov ecx, 0x4dee80
call fcn.00406370
mov ebx, eax
mov eax, dword [ebx*4 + 0x495278]
mov esi, dword [eax]
push ecx
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
sub esi, 0x10
mov dword [esp + 0x30], esp
mov ebp, esp
call dword [edx + 0x10]
mov ecx, dword [esi + 0xc]
test ecx, ecx
lea edx, [esi + 0xc]
jl 0x4128ce
cmp eax, dword [esi]
jne 0x4128ce
mov eax, esi
mov ecx, 1
lock xadd dword [edx], ecx
jmp 0x412904
mov ecx, dword [esi + 4]
mov edx, dword [eax]
push 1
push ecx
mov ecx, eax
call dword [edx]
test eax, eax
je 0x412a4b
mov edx, dword [esi + 4]
mov dword [eax + 4], edx
mov ecx, dword [esi + 4]
inc ecx
mov edx, ecx
shr ecx, 2
add esi, 0x10
lea edi, [eax + 0x10]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x24]
add eax, 0x10
mov dword [ebp], eax
mov eax, dword [esp + 0x38]
push eax
push ebx
mov ecx, edi
call fcn.00410b80
jmp 0x412a35
lea ecx, [esp + 0x2c]
push ecx
mov ecx, ebp
call fcn.00459697
mov eax, dword [eax]
push eax
call fcn.00448264
mov esi, eax
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
add esp, 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x412953
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push esi
mov ecx, 0x4dee80
call fcn.004063a0
mov esi, eax
mov eax, dword [esi*4 + 0x4ae128]
mov eax, dword [eax + 0x14]
push 0x473a35
push eax
call fcn.00447da8
add esp, 8
test eax, eax
je 0x4129ce
mov ecx, dword [esi*4 + 0x4ae128]
push ecx
lea edx, [edi + 0x114]
push edx
lea eax, [esp + 0x30]
push eax
call fcn.0040f590
mov ecx, dword [eax]
mov edx, dword [esi*4 + 0x4ae128]
mov eax, dword [edx + 0x14]
add esp, 0xc
push 0
push ecx
push eax
call dword [sym.imp.kernel32.dll_CopyFileA]
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412a35
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
jmp 0x412a35
mov ebx, dword [esp + 0x34]
mov eax, dword [esi*4 + 0x4ae128]
push ebx
push 4
add eax, 8
push 1
push eax
call fcn.0044853d
mov ecx, dword [esi*4 + 0x4ae128]
push ebx
push 4
add ecx, 0x10
push 1
push ecx
call fcn.0044853d
mov edx, dword [esi*4 + 0x4ae128]
mov eax, dword [edx]
mov ecx, dword [eax - 0xc]
push ebx
push 4
lea edx, [esp + 0x38]
push 1
push edx
mov dword [esp + 0x40], ecx
call fcn.0044853d
mov eax, dword [esp + 0x40]
mov ecx, dword [esi*4 + 0x4ae128]
mov edx, dword [ecx]
push ebx
push eax
push 1
push edx
call fcn.0044853d
add esp, 0x40
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x4127e0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
call fcn.004014e0
int3