Function at 0x10043a60
Capabilities:
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x1007dc48
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov eax, dword [0x10098a04]
push ebx
push ebp
mov ebx, ecx
push edi
mov ecx, 0x10098a04
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [esp + 0x10], edi
mov edx, dword [0x10098a04]
mov ecx, 0x10098a04
mov dword [esp + 0x20], 0
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0xc], eax
mov ebp, dword [edi - 4]
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, ebp
sub eax, 0x104
or eax, ecx
mov byte [esp + 0x20], 1
jge 0x10043adb
push 0x104
lea ecx, [esp + 0x14]
call fcn.100029f0
mov edi, dword [esp + 0x10]
mov eax, dword [0x10098990]
push 0x104
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test edi, edi
jne 0x10043af5
xor eax, eax
jmp 0x10043b0f
mov eax, edi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10043b00
sub eax, edx
js 0x10043cb7
cmp eax, dword [edi - 8]
jg 0x10043cb7
push 0x5c
mov dword [edi - 0xc], eax
push edi
mov byte [eax + edi], 0
call fcn.10069f52
add esp, 8
test eax, eax
jne 0x10043b33
or eax, 0xffffffff
jmp 0x10043b35
sub eax, edi
push esi
push eax
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x1c]
call fcn.10008ae0
mov esi, dword [esp + 0x2c]
mov edx, dword [esi + 4]
mov eax, dword [eax]
push edx
push eax
lea ecx, [esp + 0x18]
push str._sPLUGINS_s.ico
push ecx
mov byte [esp + 0x34], 2
call fcn.10004e20
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
add esp, 0x10
mov byte [esp + 0x24], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x10043b8a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x10]
mov eax, dword [esi + 0x4c]
push 0
lea ebp, [esi + 0x4c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea edx, [esp + 0x10]
push edx
mov ecx, ebp
call fcn.10004aa0
lea eax, [esi + 0x68]
mov ebp, 0xbb8
push eax
mov dword [esi + 0x64], ebp
call fcn.1001f420
mov eax, dword [esi + 4]
add esp, 4
push eax
mov ecx, ebx
mov dword [esi + 0x64], ebp
call fcn.100423b0
mov ebp, eax
test ebp, ebp
je 0x10043bf3
mov eax, dword [esi + 4]
push eax
mov ecx, ebx
call fcn.100423b0
mov ecx, dword [eax + 0x58]
mov dword [esi + 0x58], ecx
mov edx, dword [ebp + 0x54]
push esi
mov ecx, ebp
mov dword [esi + 0x54], edx
call fcn.10023490
jmp 0x10043c4f
mov ebp, dword [ebx + 4]
test ebp, ebp
je 0x10043c2a
mov ecx, dword [ebx + 8]
sub ecx, ebp
mov eax, 0xea0ea0eb
imul ecx
add edx, ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x10043c2a
imul eax, eax, 0x8c
lea eax, [eax + ebp - 0x8c]
mov eax, dword [eax + 0x58]
inc eax
mov dword [esi + 0x58], eax
jmp 0x10043c31
mov dword [esi + 0x58], 1
push 0x10096e18
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push esi
mov ecx, ebx
call fcn.10043630
push 0x10096e18
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 7
mov ecx, esi
call fcn.10041680
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x24], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
pop esi
jg 0x10043c7c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
add edi, 0xfffffff0
mov dword [esp + 0x20], 0xffffffff
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10043c9e
mov ecx, dword [edi]
mov edx, dword [ecx]
push edi
call dword [edx + 4]
mov ecx, dword [esp + 0x18]
pop edi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 4
push 0x80070057
call fcn.10001330
int3