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

Disassembly:
push 0xffffffffffffffff
push 0x4ec68e
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.0043d940
mov ecx, dword [esp + 0x58]
mov dword [ebp], 0x4f95b8
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.00449130
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 0x51d5ec
mov dword [ebp + 0x44], ebx
mov dword [edi], 0
mov dword [ebp + 0x4c], 0
mov dword [esp + 0x58], 0x51d5ec
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 0x49dc75
mov dword [esp + 0x3c], 0x10000000
mov eax, dword [ebp + 0x40]
cmp word [eax], si
mov dword [esp + 0x44], esi
je 0x49dc91
push esi
push esi
push edi
push eax
call fcn.004698b0
add esp, 0x10
mov dword [esp + 0x44], eax
test bl, 4
je 0x49dc9e
or dword [esp + 0x3c], 0x2000
test ebx, 0x20000000
mov eax, dword [esp + 0x3c]
je 0x49dcb1
or eax, 0x200
jmp 0x49dcc1
test ebx, ebx
jns 0x49dcbc
or eax, 0x100
jmp 0x49dcc1
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 0x49dce0
or dword [esp + 0x3c], 0x8000000
push 0x6c
call fcn.004cc845
add esp, 4
mov dword [esp + 0x4c], eax
cmp eax, esi
mov byte [esp + 0x2c], 3
je 0x49dd08
lea ecx, [ebp + 0x34]
push ecx
mov ecx, eax
call fcn.004a9650
mov dword [esp + 0x4c], eax
jmp 0x49dd0e
mov dword [esp + 0x4c], esi
mov eax, esi
cmp dword [esp + 0x44], esi
mov dword [ebp + 0x1c], eax
je 0x49dd36
mov edx, dword [esp + 0x3c]
or edx, 0x40
test ebx, 0x800000
mov dword [esp + 0x3c], edx
je 0x49dd36
mov ecx, edx
or ecx, 0x400
mov dword [esp + 0x3c], ecx
test ebx, 0x200000
je 0x49dd52
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 0x49dd6e
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 0x49dd7a
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.00449130
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.004a9950
mov eax, dword [esp + 0x50]
test eax, eax
mov byte [esp + 0x2c], 2
je 0x49de04
add eax, 0xfffffff8
push eax
mov eax, dword [0x51d3c8]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ebx, dword [esp + 0x3c]
test bl, 0xb
jne 0x49de20
mov eax, dword [edi + 0x68]
test eax, eax
je 0x49de20
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 ecx, dword [esp + 0x48]
xor esi, esi
call fcn.004a38a0
test eax, eax
je 0x49de3d
mov esi, eax
mov ecx, dword [esp + 0x60]
test ecx, ecx
je 0x49de61
push ecx
lea ecx, [esp + 0x40]
push ecx
push eax
mov dword [esp + 0x48], SysReAllocStringLen
call fcn.00497450
mov esi, eax
add esp, 0xc
mov dword [edi + 0x50], esi
test esi, esi
je 0x49de79
cmp esi, 0xffffffff
je 0x49de79
mov edx, dword [edi + 0x18]
push 1
push esi
push 0x30
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp + 8]
cmp word [eax], 0
je 0x49de8f
mov ecx, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp + 0x30]
push eax
call fcn.00466e80
mov eax, dword [esp + 0x44]
test eax, eax
je 0x49de9f
push eax
mov ecx, edi
call fcn.004a9760
movzx edx, byte [esp + 0x34]
push edx
mov ecx, ebp
call fcn.0043d740
shr ebx, 0x1c
and ebx, 1
push ebx
mov ecx, ebp
call fcn.0043d7e0
push 0x51d5ec
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