Function at 0x4970e0
Capabilities:
Inspect section memory permissions

Disassembly:
push 0xffffffffffffffff
push 0x4e80a6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov dword [esp + 0x10], esi
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
mov eax, dword [eax]
mov edi, dword [esp + 0x24]
push edx
mov edx, dword [esp + 0x3c]
push edx
mov edx, dword [esp + 0x3c]
push edx
mov edx, dword [esp + 0x3c]
push edx
push eax
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x40]
mov ecx, dword [ecx]
push eax
push ecx
push edi
push 1
mov ecx, esi
call fcn.0043b200
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x4c]
mov ebx, dword [esp + 0x50]
push 0x5194ec
mov dword [esp + 0x20], 0
mov dword [esi], 0x4f7474
mov dword [esi + 0x50], ecx
mov dword [esi + 0x54], edx
mov dword [esi + 0x58], ebx
mov dword [esp + 0x28], 0x5194ec
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi + 0x2c]
mov ecx, dword [esp + 0x48]
mov ebp, dword [ecx]
mov dword [esp + 0x2c], eax
lea edx, [esi + 0x40]
mov eax, edx
mov dword [eax], ebp
mov ebp, dword [ecx + 4]
mov dword [eax + 4], ebp
mov ebp, dword [ecx + 8]
mov dword [eax + 8], ebp
mov ecx, dword [ecx + 0xc]
mov ebp, dword [esi + 0x2c]
mov dword [eax + 0xc], ecx
mov eax, dword [esi + 0x24]
mov ecx, dword [esi + 0x20]
add ebp, eax
mov dword [esp + 0x38], eax
mov eax, dword [esi + 0x28]
add eax, ecx
mov edi, ebx
shr edi, 4
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x3c], ecx
xor ecx, ecx
and edi, 0x20000
cmp eax, 0xfffffff0
mov byte [esp + 0x1c], 1
mov dword [esp + 0x40], ecx
je 0x4971d4
mov dword [esp + 0x40], 0x10000000
test ebx, 0x4000000
je 0x4971e4
or dword [esp + 0x40], 0x800000
test ebx, 0x10000000
je 0x4971f4
or dword [esp + 0x40], 0x200000
test ebx, 0x8000000
je 0x497204
or dword [esp + 0x40], 0x100000
test bl, 0x40
jne 0x49722c
cmp dword [edx], ecx
jge 0x497224
cmp dword [esi + 0x44], ecx
jge 0x497224
cmp dword [esi + 0x48], ecx
jge 0x497224
cmp dword [esi + 0x4c], ecx
jge 0x497224
mov edx, dword [esi + 0x14]
cmp word [edx], cx
je 0x49722c
or dword [esp + 0x40], 0x100
mov eax, dword [esi + 0x14]
xor edx, edx
mov dx, word [eax]
cmp dx, 0x2a
mov dword [esp + 0x30], edx
jne 0x49724d
mov dx, word [eax + 2]
neg dx
sbb edx, edx
and edx, 0x20
mov word [eax], dx
mov eax, dword [esi + 0x44]
test eax, eax
jge 0x497260
mov eax, dword [esp + 0x44]
mov edx, dword [eax]
cmp word [edx], 0
je 0x497265
mov ecx, 1
test ebx, 0x40000000
je 0x497274
mov ecx, 1
jmp 0x49728b
test ebx, 0x20000000
je 0x497283
mov ecx, 2
jmp 0x49728b
test ebx, ebx
js 0x49728f
test ecx, ecx
jle 0x49728f
or dword [esp + 0x40], ecx
test bl, 0x20
je 0x49729c
or dword [esp + 0x40], 0x200
push 0x80
call fcn.004c86a5
add esp, 4
and ebx, 0x2000000
mov dword [esp + 0x44], eax
je 0x4972cb
test eax, eax
mov byte [esp + 0x1c], 2
je 0x4972e1
lea ecx, [esi + 0x34]
push ecx
mov ecx, eax
call fcn.004ab98e
jmp 0x4972e3
test eax, eax
mov byte [esp + 0x1c], 3
je 0x4972e1
lea edx, [esi + 0x34]
push edx
mov ecx, eax
call fcn.004ab6ce
jmp 0x4972e3
xor eax, eax
mov edx, dword [esp + 0x2c]
mov ecx, eax
mov eax, dword [esp + 0x28]
push eax
mov dword [esi + 0x1c], ecx
mov eax, dword [edx + 0x18]
push eax
mov eax, dword [esp + 0x44]
sub esp, 0x10
test ebx, ebx
mov edx, esp
mov dword [edx], eax
mov eax, dword [esp + 0x50]
mov dword [edx + 4], eax
mov eax, dword [esp + 0x4c]
mov dword [edx + 8], eax
mov byte [esp + 0x34], 1
mov dword [edx + 0xc], ebp
je 0x497333
mov ebp, dword [esp + 0x58]
mov edx, ebp
or edx, 0x40000000
push edx
push 0x4ebd38
call fcn.004ab836
jmp 0x49734d
mov edx, dword [esp + 0x58]
or edx, 0x40000000
push edx
push 0x4ebd38
push edi
call fcn.004ab7dd
mov ebp, dword [esp + 0x40]
mov eax, dword [esi + 0x14]
cmp word [eax], 0
je 0x497365
cmp word [esp + 0x30], 0x2a
je 0x497365
mov ecx, dword [esi + 0x1c]
mov byte [ecx + 0x49], 1
mov ecx, dword [esi + 0x1c]
lea eax, [esi + 0x40]
push eax
call fcn.004ab73b
mov edx, dword [esp + 0x2c]
mov eax, dword [edx + 0x18]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x31
push eax
call ebx
cmp eax, 0xffffffff
je 0x497390
test eax, eax
jne 0x497395
mov eax, dword [0x51948c]
mov ecx, dword [esp + 0x4c]
test ecx, ecx
mov edi, eax
jl 0x4973c1
push 0
lea ecx, [esp + 0x50]
push ecx
push eax
call fcn.00497090
mov edx, dword [esi + 0x1c]
mov dword [edx + 0x40], eax
mov eax, dword [esi + 0x1c]
mov eax, dword [eax + 0x40]
add esp, 0xc
test eax, eax
je 0x4973c1
mov edi, eax
test edi, edi
je 0x4973d8
cmp edi, 0xffffffff
je 0x4973d8
mov ecx, dword [esi + 0x1c]
mov edx, dword [ecx + 0x18]
push 0
push edi
push 0x30
push edx
call ebx
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x1c]
mov edx, dword [ecx + 0x18]
push eax
push edx
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov eax, dword [esi + 8]
cmp word [eax], 0
je 0x4973ff
mov ecx, dword [esi + 0x10]
push ecx
mov ecx, dword [esi + 0x30]
push eax
call fcn.004637c0
push 1
mov ecx, esi
call fcn.0043aff0
mov edx, dword [esi + 0x1c]
mov eax, dword [edx + 0x18]
push 1
push eax
call dword [sym.imp.SHELL32.dll_DragAcceptFiles]
and ebp, 0x10000000
push ebp
mov ecx, esi
call fcn.0043b090
push 0x5194ec
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x14]
pop edi
mov eax, esi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x10
ret 0x34