Function at 0x1003ae60
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
lea ebp, [esp - 0x40]
sub esp, 0x88
mov eax, dword [ebp + 0x64]
push ebx
push esi
mov esi, dword [ebp + 0x48]
push edi
push dword [ebp + 0x60]
mov ebx, ecx
push dword [ebp + 0x5c]
push dword [ebp + 0x58]
push dword [ebp + 0x54]
push dword [eax]
mov eax, dword [ebp + 0x50]
push dword [ebp + 0x68]
push dword [eax]
push esi
push 3
call fcn.1003a4c7
mov eax, dword [ebp + 0x6c]
or dword [ebx + 0x44], 0xffffffff
push 0x100e3d7c
mov dword [ebx], 0x100cd0ec
mov dword [ebx + 0x40], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x28]
mov cl, byte [ebp + 0x78]
mov edx, dword [ebx + 0x28]
mov edi, dword [ebp + 0x6c]
mov dword [ebp + 0x64], eax
mov byte [ebx + 0x48], cl
mov esi, dword [eax + 0x8c]
mov eax, dword [ebx + 0x20]
mov ecx, dword [ebx + 0x24]
add edx, eax
mov dword [ebp + 0x20], eax
mov eax, dword [ebx + 0x2c]
add eax, ecx
mov dword [ebp + 0x2c], eax
mov eax, dword [ebx + 0x40]
shr eax, 0x17
shl esi, 2
and al, 1
shr edi, 0xc
not esi
mov byte [ebp + 0x63], al
and edi, 0x200
and esi, 0x10000
test byte [ebp + 0x6c], 0x10
mov eax, 0x40000000
mov dword [ebp + 0x24], ecx
mov dword [ebp + 0x28], edx
mov dword [ebp + 0x48], edi
mov dword [ebp + 0x5c], eax
jne 0x1003af17
mov dword [ebp + 0x5c], 0x50000000
mov ecx, dword [ebp + 0x6c]
test ecx, 0x4000000
jne 0x1003af26
or byte [ebp + 0x5e], 0x80
test ecx, 0x10000000
je 0x1003af32
or byte [ebp + 0x5e], 0x20
test ecx, 0x8000000
je 0x1003af3e
or byte [ebp + 0x5e], 0x10
test eax, ecx
je 0x1003af48
or dword [ebp + 0x5c], 1
jmp 0x1003af54
test ecx, 0x20000000
je 0x1003af54
or dword [ebp + 0x5c], 2
test cl, 0x20
je 0x1003af65
and byte [ebp + 0x5e], 0xef
or ecx, 4
mov dword [ebp + 0x6c], ecx
jmp 0x1003af69
or byte [ebp + 0x5c], 0x80
test cl, 8
je 0x1003af72
or byte [ebp + 0x5d], 8
mov eax, dword [ebx + 0x10]
push 0xa
push eax
call dword [sym.imp.SHLWAPI.dll_StrChrW]
test eax, eax
je 0x1003af86
or dword [ebp + 0x6c], 4
mov ecx, dword [ebp + 0x6c]
test cl, 1
je 0x1003af92
or dword [ebp + 0x5c], 0x20
test byte [ebp + 0x5c], 0x20
je 0x1003af9e
and ecx, 0xfffffffb
mov dword [ebp + 0x6c], ecx
test cl, 4
je 0x1003afa7
or dword [ebp + 0x5c], 4
and dword [ebp + 0x50], 0
mov eax, 0x1000
test eax, ecx
je 0x1003afc0
or edi, eax
mov dword [ebp + 0x48], edi
mov dword [ebp + 0x50], 0x4000
test ch, ch
jns 0x1003afc8
or byte [ebp + 0x5f], 8
or esi, 0x40001000
or dword [ebp + 0x5c], esi
test ch, 4
je 0x1003afda
or byte [ebp + 0x5d], 0x20
test ecx, 0x2000000
je 0x1003afe6
or dword [ebp + 0x5c], 4
cmp byte [ebp + 0x63], 0
je 0x1003b027
call fcn.1003a6e6
push 0x10c
call fcn.100b4338
test eax, eax
pop ecx
je 0x1003b00e
push ebx
lea ecx, [ebx + 0x34]
push ecx
mov ecx, eax
call fcn.100af12b
jmp 0x1003b010
xor eax, eax
mov ecx, dword [ebp + 0x68]
mov dword [ebx + 0x1c], eax
mov ecx, dword [ecx]
cmp word [ecx], 0
setne cl
mov byte [eax + 0x8c], cl
jmp 0x1003b061
push 0x98
call fcn.100b4338
test eax, eax
pop ecx
je 0x1003b044
push ebx
lea ecx, [ebx + 0x34]
push ecx
mov ecx, eax
call fcn.100a83cd
jmp 0x1003b046
xor eax, eax
mov ecx, dword [ebp + 0x68]
mov dword [ebx + 0x1c], eax
mov ecx, dword [ecx]
add eax, 0x8c
cmp word [ecx], 0
setne cl
xor cl, byte [eax]
and cl, 1
xor byte [eax], cl
test byte [ebx + 0x42], 0x40
mov eax, dword [ebx + 0x1c]
mov dword [ebp + 0x58], eax
je 0x1003b074
or byte [eax + 0x8c], 2
cmp byte [ebp + 0x63], 0
mov eax, dword [ebx + 0x1c]
push dword [ebp + 0x4c]
mov dword [ebp + 0x54], eax
lea esi, [ebp + 0x20]
je 0x1003b0bb
mov eax, dword [ebp + 0x64]
push dword [eax + 0x18]
mov eax, dword [ebp + 0x50]
or eax, dword [ebp + 0x5c]
mov ecx, dword [ebp + 0x54]
sub esp, 0x10
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push eax
movsd dword es:[edi], dword [esi]
call fcn.100af5e3
mov eax, dword [ebp + 0x58]
push 1
push 0
push 0x445
push dword [eax + 0x18]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x1003b0db
mov edx, dword [ebp + 0x64]
push dword [edx + 0x18]
mov ecx, dword [ebp + 0x58]
mov eax, dword [ecx]
sub esp, 0x10
mov edi, esp
push dword [ebp + 0x5c]
movsd dword es:[edi], dword [esi]
push dword [ebp + 0x48]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [eax + 0x8c]
mov eax, dword [ebp + 0x58]
mov eax, dword [eax + 0x18]
xor esi, esi
cmp byte [ebp + 0x63], 0
mov dword [ebp + 0x4c], eax
je 0x1003b0f6
push 0xffffffffffffffff
push esi
push 0x435
jmp 0x1003b0fe
push esi
push 0xffffffffffffffff
push 0xc5
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp + 0x64]
mov dword [ebp + 0x68], esi
call fcn.1009fde3
cmp eax, esi
mov dword [ebp + 0x64], eax
je 0x1003b11a
mov dword [ebp + 0x68], eax
fld qword [0x100cd100]
mov eax, dword [ebp + 0x74]
fstp qword [ebp + 0x38]
mov di, word [eax]
cmp di, 0x2a
jne 0x1003b132
mov word [eax], si
lea eax, [ebp + 0x38]
push eax
lea eax, [ebp + 0x74]
push eax
call fcn.10049667
pop ecx
pop ecx
mov ecx, dword [ebp + 0x74]
cmp word [ecx], 0x3a
jne 0x1003b14f
inc ecx
inc ecx
mov dword [ebp + 0x74], ecx
fld qword [ebp + 0x38]
fcomp qword [0x100c9b80]
fnstsw ax
test ah, 0x41
je 0x1003b169
cmp word [ecx], si
jne 0x1003b169
cmp di, si
je 0x1003b17c
push ecx
lea eax, [ebp + 0x38]
push eax
push dword [ebp + 0x64]
call fcn.1008a313
add esp, 0xc
mov dword [ebp + 0x68], eax
cmp dword [ebp + 0x68], esi
je 0x1003b191
mov ecx, dword [ebp + 0x58]
mov eax, dword [ecx]
push 1
push dword [ebp + 0x68]
call dword [eax + 0x84]
cmp dword [ebp + 0x78], esi
jle 0x1003b1a0
cmp dword [ebp + 0x7c], 1
jge 0x1003b221
cmp byte [ebx + 0x48], 0
jge 0x1003b221
push 0x17
pop ecx
xor eax, eax
lea edi, [ebp - 0x48]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x48]
push eax
push 0x5c
push dword [ebp + 0x68]
call dword [sym.imp.GDI32.dll_GetObjectW]
mov eax, dword [ebp - 0x48]
movsx edi, byte [ebx + 0x48]
cdq
mov ecx, edx
neg edi
cmp ecx, esi
mov dword [ebp + 0x30], eax
jg 0x1003b1e1
jl 0x1003b1d8
cmp eax, esi
jae 0x1003b1e1
neg eax
adc ecx, esi
neg ecx
mov dword [ebp + 0x30], eax
cmp dword [ebp + 0x7c], 1
jl 0x1003b201
mov eax, dword [ebp + 0x7c]
push ecx
push dword [ebp + 0x30]
cdq
push edx
push eax
call fcn.100b4200
lea edi, [edi + edi*2]
mov dword [ebp + 0x30], eax
mov ecx, edx
shl edi, 5
mov eax, edi
cdq
mov edi, eax
add edi, dword [ebp + 0x30]
mov dword [ebp + 0x2c], edx
push dword [ebp + 0x2c]
adc edx, ecx
sub edi, 1
push eax
sbb edx, esi
push edx
push edi
call fcn.100b4150
mov byte [ebx + 0x48], al
test byte [ebp + 0x6c], 1
je 0x1003b238
push esi
push 0x2a
push 0xcc
push dword [ebp + 0x4c]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp byte [ebp + 0x63], 0
je 0x1003b30a
push 0x16
pop ecx
xor eax, eax
mov dword [ebp - 0x48], esi
lea edi, [ebp - 0x44]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x48]
push eax
push 0x5c
push dword [ebp + 0x68]
mov dword [ebp - 0x38], 0x190
call dword [sym.imp.GDI32.dll_GetObjectW]
fld qword [ebp + 0x38]
fcomp qword [0x100c9b80]
fnstsw ax
test ah, 0x41
jne 0x1003b27f
fld qword [ebp + 0x38]
call fcn.100b4728
jmp 0x1003b2a4
cmp dword [ebp - 0x48], esi
jge 0x1003b287
neg dword [ebp - 0x48]
mov ecx, dword [0x100e3508]
cmp ecx, esi
jle 0x1003b2a7
mov eax, dword [ebp - 0x48]
lea edi, [eax + eax*8]
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
lea eax, [eax + edi*8]
cdq
idiv ecx
mov dword [ebp - 0x48], eax
mov edi, dword [ebp + 0x54]
push esi
push esi
push 0xffffffffffffffff
push 0xffffffffffffffff
lea ecx, [ebp - 0x2c]
push ecx
push dword [ebp - 0x48]
lea ecx, [ebp - 0x48]
lea eax, [edi + 0x98]
push ecx
push eax
call fcn.1003a8ac
mov eax, dword [ebp + 0x70]
mov eax, dword [eax + 4]
add esp, 0x20
cmp eax, esi
jl 0x1003b2e4
push eax
push esi
push 0x443
push dword [edi + 0x18]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp + 0x70]
mov eax, dword [eax]
cmp eax, esi
jl 0x1003b2fa
or byte [edi + 0x9f], 0x40
mov dword [edi + 0xac], eax
lea eax, [edi + 0x98]
push eax
mov ecx, edi
call fcn.1003a6b1
jmp 0x1003b332
mov edi, dword [ebp + 0x70]
mov ecx, dword [ebp + 0x58]
push edi
call fcn.100b028b
mov eax, dword [ebp + 0x58]
cmp word [eax + 0x6e], si
jne 0x1003b32f
cmp dword [edi + 8], esi
jge 0x1003b32f
cmp dword [edi + 0xc], esi
jge 0x1003b32f
mov word [eax + 0x6e], 0xff00
mov edi, dword [ebp + 0x54]
mov eax, dword [ebx + 0x10]
lea ecx, [ebp + 0x14]
mov dword [ebp + 0x68], eax
call fcn.10046123
push dword [ebp + 0x68]
mov dword [ebp + 0x18], esi
mov dword [ebp + 0x1c], esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
shl eax, 1
test byte [ebx + 0x43], 1
mov dword [ebp + 0x18], eax
je 0x1003b36b
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x68]
call fcn.10008472
pop ecx
pop ecx
mov dword [ebp + 0x68], eax
push dword [ebp + 0x68]
push dword [ebp + 0x4c]
call dword [sym.imp.USER32.dll_SetWindowTextW]
cmp byte [ebp + 0x63], 0
je 0x1003b38b
lea eax, [edi + 0x98]
push eax
mov ecx, edi
call fcn.1003a6b1
mov ecx, ebx
call fcn.1003a729
mov edi, dword [sym.imp.USER32.dll_PostMessageW]
push esi
push esi
push 0xb1
push dword [ebp + 0x4c]
call edi
mov eax, dword [ebx + 8]
cmp word [eax], si
je 0x1003b3b8
push dword [ebx + 0x10]
mov ecx, dword [ebx + 0x30]
push eax
call fcn.10059c75
test byte [ebp + 0x6d], 1
mov byte [ebp + 0x6b], 0
je 0x1003b3c6
mov byte [ebp + 0x6b], 0x10
test byte [ebp + 0x6d], 2
je 0x1003b3d0
mov byte [ebp + 0x6b], 0x20
push 1
push dword [ebp + 0x4c]
call dword [sym.imp.SHELL32.dll_DragAcceptFiles]
mov cl, byte [ebp + 0x6b]
mov eax, dword [ebp + 0x58]
or byte [eax + 0x78], cl
xor eax, eax
cmp word [ebx + 0x40], si
mov ecx, ebx
setge al
push eax
call fcn.1003a2f5
mov eax, dword [ebp + 0x5c]
and eax, 0x10000000
push eax
mov ecx, ebx
call fcn.1003a350
test byte [ebx + 0x40], 0x40
je 0x1003b418
push esi
push 7
push 0x115
push dword [ebp + 0x4c]
call edi
test byte [ebx + 0x41], 8
je 0x1003b42b
push esi
push 7
push 0x114
push dword [ebp + 0x4c]
call edi
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xb1
push dword [ebp + 0x4c]
call edi
lea ecx, [ebp + 0x14]
call fcn.1003f96c
push 0x100e3d7c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
mov eax, ebx
pop ebx
add ebp, 0x40
leave
ret 0x38