Function at 0x49de60
Capabilities:
Check for peb beingdebugged flag
Inspect section memory permissions

Disassembly:
push 0xffffffffffffffff
push 0x4e83ce
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov ebp, ecx
mov dword [esp + 0x10], ebp
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x3c]
mov eax, dword [eax]
mov ecx, dword [esp + 0x4c]
push ecx
mov ecx, dword [esp + 0x48]
push edx
mov edx, dword [esp + 0x48]
push ecx
mov ecx, dword [esp + 0x5c]
push edx
mov edx, dword [esp + 0x64]
push ecx
push edx
push eax
mov eax, dword [esp + 0x50]
push eax
push 2
mov ecx, ebp
call fcn.0043b200
mov ecx, dword [esp + 0x58]
mov dword [ebp], 0x4f4f30
mov esi, dword [ecx]
push esi
mov dword [esp + 0x30], 0
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax + 2]
push edi
call fcn.00445f00
mov ecx, edi
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
add esp, 4
mov dword [ebp + 0x40], eax
mov ebx, dword [esp + 0x5c]
lea edi, [ebp + 0x48]
push 0x5194ec
mov dword [ebp + 0x44], ebx
mov dword [edi], 0
mov dword [ebp + 0x4c], 0
mov dword [esp + 0x58], 0x5194ec
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esp + 0x34]
mov ecx, dword [eax + 0x2c]
mov edx, dword [ebp + 0x24]
mov esi, dword [ebp + 0x20]
mov eax, dword [ebp + 0x2c]
add eax, edx
mov dword [esp + 0x48], ecx
mov ecx, dword [ebp + 0x28]
add ecx, esi
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x48]
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], esi
mov dword [esp + 0x1c], ecx
mov eax, dword [edx + 0x48]
shl eax, 2
not eax
and eax, 0x10000
xor esi, esi
test bl, 0x10
mov byte [esp + 0x2c], 2
mov dword [esp + 0x40], eax
mov dword [esp + 0x3c], esi
jne 0x49df75
mov dword [esp + 0x3c], 0x10000000
mov eax, dword [ebp + 0x40]
cmp word [eax], si
mov dword [esp + 0x44], esi
je 0x49df91
push esi
push esi
push edi
push eax
call fcn.00468160
add esp, 0x10
mov dword [esp + 0x44], eax
test bl, 4
je 0x49df9e
or dword [esp + 0x3c], 0x2000
test ebx, 0x20000000
mov eax, dword [esp + 0x3c]
je 0x49dfb1
or eax, 0x200
jmp 0x49dfc1
test ebx, ebx
jns 0x49dfbc
or eax, 0x100
jmp 0x49dfc1
or eax, 0x300
mov dword [esp + 0x3c], eax
mov eax, ebx
shr eax, 0xf
and eax, 1
sete al
test al, al
mov byte [esp + 0x34], al
jne 0x49dfe0
or dword [esp + 0x3c], 0x8000000
push 0x6c
call fcn.004c86a5
add esp, 4
mov dword [esp + 0x4c], eax
cmp eax, esi
mov byte [esp + 0x2c], 3
je 0x49e008
lea ecx, [ebp + 0x34]
push ecx
mov ecx, eax
call fcn.004a4a20
mov dword [esp + 0x4c], eax
jmp 0x49e00e
mov dword [esp + 0x4c], esi
mov eax, esi
cmp dword [esp + 0x44], esi
mov dword [ebp + 0x1c], eax
je 0x49e036
mov edx, dword [esp + 0x3c]
or edx, 0x40
test ebx, 0x800000
mov dword [esp + 0x3c], edx
je 0x49e036
mov ecx, edx
or ecx, 0x400
mov dword [esp + 0x3c], ecx
test ebx, 0x200000
je 0x49e052
mov dl, byte [eax + 0x54]
mov ecx, dword [esp + 0x3c]
or dl, 1
or ecx, 0xb
mov byte [eax + 0x54], dl
mov dword [esp + 0x3c], ecx
test ebx, 0x400000
je 0x49e06e
mov dl, byte [eax + 0x54]
mov ecx, dword [esp + 0x3c]
or dl, 2
or ecx, 0xb
mov byte [eax + 0x54], dl
mov dword [esp + 0x3c], ecx
test ebx, 0x100000
je 0x49e07a
or byte [eax + 0x54], 4
mov esi, dword [ebp + 0x10]
shr ebx, 0x13
push esi
and ebx, 1
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax + 2]
push edi
call fcn.00445f00
mov ecx, edi
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
add esp, 4
mov dword [esp + 0x50], eax
rep movsb byte es:[edi], byte [esi]
mov dword [esp + 0x58], eax
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x48]
mov edi, dword [esp + 0x4c]
push ecx
mov ecx, dword [edx + 0x18]
push ecx
mov ecx, dword [esp + 0x48]
lea edx, [esp + 0x1c]
push edx
or ebx, dword [esp + 0x48]
or ebx, ecx
or ebx, 0x40000000
push ebx
push eax
mov ecx, edi
mov byte [esp + 0x40], 4
call fcn.004a4d20
mov eax, dword [esp + 0x50]
test eax, eax
mov byte [esp + 0x2c], 2
je 0x49e104
add eax, 0xfffffff8
push eax
mov eax, dword [0x51927c]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
test byte [esp + 0x3c], 0xb
jne 0x49e11e
mov eax, dword [edi + 0x68]
test eax, eax
je 0x49e11e
mov ecx, dword [eax + 0x18]
push 5
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [edi + 0x18]
push 1
push edx
call dword [sym.imp.SHELL32.dll_DragAcceptFiles]
mov eax, dword [esp + 0x48]
mov ecx, dword [eax + 0x18]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
xor esi, esi
push esi
push esi
push 0x31
push ecx
call ebx
cmp eax, 0xffffffff
je 0x49e149
test eax, eax
jne 0x49e152
mov eax, dword [0x51948c]
test eax, eax
je 0x49e154
mov esi, eax
mov ecx, dword [esp + 0x60]
test ecx, ecx
je 0x49e178
push ecx
lea edx, [esp + 0x50]
push edx
push eax
mov dword [esp + 0x58], SysReAllocStringLen
call fcn.00497090
mov esi, eax
add esp, 0xc
mov dword [edi + 0x50], esi
test esi, esi
je 0x49e18c
cmp esi, 0xffffffff
je 0x49e18c
mov eax, dword [edi + 0x18]
push 1
push esi
push 0x30
push eax
call ebx
mov eax, dword [ebp + 8]
cmp word [eax], 0
je 0x49e1a2
mov ecx, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp + 0x30]
push eax
call fcn.004637c0
mov eax, dword [esp + 0x44]
test eax, eax
je 0x49e1b2
push eax
mov ecx, edi
call fcn.004a4b30
movzx edx, byte [esp + 0x34]
push edx
mov ecx, ebp
call fcn.0043aff0
mov eax, dword [esp + 0x3c]
shr eax, 0x1c
and eax, 1
push eax
mov ecx, ebp
call fcn.0043b090
push 0x5194ec
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x24]
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0x30